We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0 parents commit a56882cCopy full SHA for a56882c
.gitignore
@@ -0,0 +1 @@
1
+.idea
index.mjs
@@ -0,0 +1,14 @@
+import { parseArgs } from 'node:util';
2
+
3
+const options = {
4
+ say: {
5
+ type: "string",
6
+ short: 's'
7
+ }
8
+}
9
10
+const { values } = parseArgs({
11
+ options
12
+})
13
14
+console.log(values)
package.json
@@ -0,0 +1,11 @@
+{
+ "name": "parseargs",
+ "version": "1.0.0",
+ "description": "a simple parseArgs example",
+ "main": "index.mjs",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "Julien Prugne <julien@webeleon.dev>",
+ "license": "MIT"
0 commit comments