UNPKG

layaair2-cmd

Version:

layaair version 2 toolkit

115 lines (114 loc) 3.9 kB
{ "_args": [ [ { "raw": "subarg@^1.0.0", "scope": null, "escapedName": "subarg", "name": "subarg", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\browserify" ] ], "_from": "subarg@>=1.0.0 <2.0.0", "_id": "subarg@1.0.0", "_inCache": true, "_location": "/subarg", "_nodeVersion": "0.10.31", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "_npmVersion": "2.0.2", "_phantomChildren": {}, "_requested": { "raw": "subarg@^1.0.0", "scope": null, "escapedName": "subarg", "name": "subarg", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/browserify", "/deps-sort", "/module-deps" ], "_resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", "_shasum": "f62cf17581e996b48fc965699f54c06ae268b8d2", "_shrinkwrap": null, "_spec": "subarg@^1.0.0", "_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\browserify", "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "bugs": { "url": "https://github.com/substack/subarg/issues" }, "dependencies": { "minimist": "^1.1.0" }, "description": "parse arguments with recursive contexts", "devDependencies": { "tape": "^3.0.0" }, "directories": {}, "dist": { "shasum": "f62cf17581e996b48fc965699f54c06ae268b8d2", "tarball": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz" }, "gitHead": "249bde03606850fac7d89d67e79782f56cd41cce", "homepage": "https://github.com/substack/subarg", "keywords": [ "argument", "option", "parser", "parsing", "flags", "command-line", "cli", "recursive", "minimist" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "name": "subarg", "optionalDependencies": {}, "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", "repository": { "type": "git", "url": "git://github.com/substack/subarg.git" }, "scripts": { "test": "tape test/*.js" }, "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" ] }, "version": "1.0.0" }