cli-argv-util 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cli-argv-util.d.ts +2 -2
- package/dist/cli-argv-util.js +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -27,10 +27,10 @@ const cli = cliArgvUtil.parse(validFlags);
|
|
|
27
27
|
if (cli.invalidFlag)
|
|
28
28
|
throw new Error(cli.invalidFlagMsg);
|
|
29
29
|
if (cli.flagOn.find)
|
|
30
|
-
console.
|
|
30
|
+
console.info('You set the --find CLI flag to:', cli.flagMap.find);
|
|
31
31
|
if (cli.flagOn.noSummary)
|
|
32
|
-
console.
|
|
33
|
-
console.
|
|
32
|
+
console.info('You enabled the --no-summary CLI option.');
|
|
33
|
+
console.info('You supplied', cli.params.length , 'CLI parameter(s).');
|
|
34
34
|
```
|
|
35
35
|
For a real world example, see:
|
|
36
36
|
[cli.js](https://github.com/center-key/copy-file-util/blob/main/bin/cli.js)
|
package/dist/cli-argv-util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! cli-argv-util v1.3.
|
|
1
|
+
//! cli-argv-util v1.3.1 ~~ https://github.com/center-key/cli-argv-util ~~ MIT License
|
|
2
2
|
|
|
3
3
|
export type StringFlagMap = {
|
|
4
4
|
[flag: string]: string | undefined;
|
|
@@ -18,7 +18,7 @@ declare const cliArgvUtil: {
|
|
|
18
18
|
parse(validFlags: string[]): Result;
|
|
19
19
|
run(packageJson: {
|
|
20
20
|
[key: string]: unknown;
|
|
21
|
-
}, posix: string):
|
|
21
|
+
}, posix: string): NonSharedBuffer;
|
|
22
22
|
readFolder(folder: string): string[];
|
|
23
23
|
cleanPath(name: string): string;
|
|
24
24
|
unquoteArgs(args: string[]): string[];
|
package/dist/cli-argv-util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cli-argv-util",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Simple utility to parse command line parameters and flags (arguments vector)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"pretest": "run-scripts clean lint build",
|
|
52
|
-
"test": "mocha spec
|
|
52
|
+
"test": "mocha spec"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"slash": "~5.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@eslint/js": "~9.
|
|
59
|
-
"@types/node": "~24.
|
|
60
|
-
"add-dist-header": "~1.
|
|
58
|
+
"@eslint/js": "~9.38",
|
|
59
|
+
"@types/node": "~24.9",
|
|
60
|
+
"add-dist-header": "~1.5",
|
|
61
61
|
"assert-deep-strict-equal": "~1.2",
|
|
62
|
-
"copy-file-util": "~1.
|
|
63
|
-
"eslint": "~9.
|
|
62
|
+
"copy-file-util": "~1.3",
|
|
63
|
+
"eslint": "~9.38",
|
|
64
64
|
"jshint": "~2.13",
|
|
65
65
|
"mocha": "~11.7",
|
|
66
66
|
"rimraf": "~6.0",
|
|
67
67
|
"run-scripts-util": "~1.3",
|
|
68
|
-
"typescript": "~5.
|
|
69
|
-
"typescript-eslint": "~8.
|
|
68
|
+
"typescript": "~5.9",
|
|
69
|
+
"typescript-eslint": "~8.46"
|
|
70
70
|
}
|
|
71
71
|
}
|