Skip to content

Commit addba86

Browse files
committed
Enabled strict mode in Node scripts
1 parent 3c5d6a8 commit addba86

File tree

6 files changed

+242
-232
lines changed

6 files changed

+242
-232
lines changed

generate-ip/src/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const pkgName = 'generate-ip',
88
latestLocaleCommitHash = '3560750';
99

1010
(async () => {
11+
'use strict'
1112

1213
// Import LIBS
1314
const { ipv4, ipv6, mac } = require(__dirname.match(/src/) ? './generate-ip' : './generate-ip.min'),

generate-pw/src/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const pkgName = 'generate-pw',
88
latestLocaleCommitHash = '3560750';
99

1010
(async () => {
11+
'use strict'
1112

1213
// Import LIBS
1314
const { generatePassword } = require(__dirname.match(/src/) ? './generate-pw' : './generate-pw.min'),

geolocate/src/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const pkgName = '@adamlui/geolocate',
88
latestLocaleCommitHash = '3560750';
99

1010
(async () => {
11+
'use strict'
1112

1213
// Import LIBS
1314
const geo = require(__dirname.match(/src/) ? './geolocate' : './geolocate.min'),

img-to-webp/img-to-webp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
/* ========================================================
44
Script: img-to-webp.js
5-
Version: 2025.4.5
5+
Version: 2025.10.19
66
Description: Compress all JPG/PNG images in a directory to WEBPs
77
Author: Adam Lui
88
License: MIT
99
Homepage: https://js-utils.org/img-to-webp
1010
========================================================= */
1111

1212
(async () => {
13+
'use strict'
1314

1415
// Import libs
1516
const fs = require('fs').promises, path = require('path'), glob = require('glob'),

minify.js/node.js/src/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const pkgName = '@adamlui/minify.js',
88
latestLocaleCommitHash = '55480ff';
99

1010
(async () => {
11+
'use strict'
1112

1213
// Import LIBS
1314
const minifyJS = require(__dirname.match(/src/) ? './minify' : './minify.min'),

0 commit comments

Comments
 (0)