-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
59 lines (59 loc) · 2.39 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"name": "subarg",
"version": "1.0.0",
"description": "parse arguments with recursive contexts",
"main": "index.js",
"dependencies": {
"minimist": "^1.1.0"
},
"devDependencies": {
"tape": "^3.0.0"
},
"scripts": {
"test": "tape test/*.js"
},
"repository": {
"type": "git",
"url": "git://github.com/substack/subarg.git"
},
"homepage": "https://github.com/substack/subarg",
"keywords": [
"argument",
"option",
"parser",
"parsing",
"flags",
"command-line",
"cli",
"recursive",
"minimist"
],
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT",
"testling": {
"files": "test/*.js",
"browsers": [
"ie/8..latest",
"firefox/16",
"firefox/latest",
"firefox/nightly",
"chrome/22",
"chrome/latest",
"chrome/canary",
"opera/12..latest",
"opera/next",
"safari/5.1..latest"
]
},
"readme": "# subarg\n\nparse arguments with recursive contexts using\n[minimist](https://npmjs.org/package/minimist)\n\n[![testling badge](https://ci.testling.com/substack/subarg.png)](https://ci.testling.com/substack/subarg)\n\n[![build status](https://secure.travis-ci.org/substack/subarg.png)](http://travis-ci.org/substack/subarg)\n\nThis module is useful if you need to pass arguments into a piece of code without\ncoordinating ahead of time with the main program, like with a plugin system.\n\n# example\n\n``` js\nvar subarg = require('subarg');\nvar argv = subarg(process.argv.slice(2));\nconsole.log(argv);\n```\n\nContexts are denoted with square brackets:\n\n```\n$ node example/show.js rawr --beep [ boop -a 3 ] -n4 --robots [ -x 8 -y 6 ]\n{ _: [ 'rawr' ],\n beep: { _: [ 'boop' ], a: 3 },\n n: 4,\n robots: { _: [], x: 8, y: 6 } }\n```\n\n# methods\n\n``` js\nvar subarg = require('subarg')\n```\n\n## var argv = subarg(args, opts)\n\nParse the arguments array `args`, passing `opts` to\n[minimist](https://npmjs.org/package/minimist).\n\nAn opening `[` in the `args` array creates a new context and a `]` closes a\ncontext. Contexts may be nested.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install subarg\n```\n\n# license\n\nMIT\n",
"readmeFilename": "readme.markdown",
"bugs": {
"url": "https://github.com/substack/subarg/issues"
},
"_id": "subarg@1.0.0",
"_from": "subarg@^1.0.0"
}