107 lines
5.0 KiB
JSON
107 lines
5.0 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "minimist@^1.2.0",
|
|
"scope": null,
|
|
"escapedName": "minimist",
|
|
"name": "minimist",
|
|
"rawSpec": "^1.2.0",
|
|
"spec": ">=1.2.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/react-native-scripts"
|
|
]
|
|
],
|
|
"_from": "minimist@>=1.2.0 <2.0.0",
|
|
"_id": "minimist@1.2.0",
|
|
"_inCache": true,
|
|
"_location": "/minimist",
|
|
"_nodeVersion": "2.4.0",
|
|
"_npmUser": {
|
|
"name": "substack",
|
|
"email": "substack@gmail.com"
|
|
},
|
|
"_npmVersion": "3.2.2",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "minimist@^1.2.0",
|
|
"scope": null,
|
|
"escapedName": "minimist",
|
|
"name": "minimist",
|
|
"rawSpec": "^1.2.0",
|
|
"spec": ">=1.2.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/react-native-scripts"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
|
"_shasum": "a35008b20f41383eec1fb914f4cd5df79a264284",
|
|
"_shrinkwrap": null,
|
|
"_spec": "minimist@^1.2.0",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/react-native-scripts",
|
|
"author": {
|
|
"name": "James Halliday",
|
|
"email": "mail@substack.net",
|
|
"url": "http://substack.net"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/substack/minimist/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "parse argument options",
|
|
"devDependencies": {
|
|
"covert": "^1.0.0",
|
|
"tap": "~0.4.0",
|
|
"tape": "^3.5.0"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "a35008b20f41383eec1fb914f4cd5df79a264284",
|
|
"tarball": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
|
|
},
|
|
"gitHead": "dc624482fcfec5bc669c68cdb861f00573ed4e64",
|
|
"homepage": "https://github.com/substack/minimist",
|
|
"keywords": [
|
|
"argv",
|
|
"getopt",
|
|
"parser",
|
|
"optimist"
|
|
],
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "substack",
|
|
"email": "mail@substack.net"
|
|
}
|
|
],
|
|
"name": "minimist",
|
|
"optionalDependencies": {},
|
|
"readme": "# minimist\n\nparse argument options\n\nThis module is the guts of optimist's argument parser without all the\nfanciful decoration.\n\n[![browser support](https://ci.testling.com/substack/minimist.png)](http://ci.testling.com/substack/minimist)\n\n[![build status](https://secure.travis-ci.org/substack/minimist.png)](http://travis-ci.org/substack/minimist)\n\n# example\n\n``` js\nvar argv = require('minimist')(process.argv.slice(2));\nconsole.dir(argv);\n```\n\n```\n$ node example/parse.js -a beep -b boop\n{ _: [], a: 'beep', b: 'boop' }\n```\n\n```\n$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz\n{ _: [ 'foo', 'bar', 'baz' ],\n x: 3,\n y: 4,\n n: 5,\n a: true,\n b: true,\n c: true,\n beep: 'boop' }\n```\n\n# methods\n\n``` js\nvar parseArgs = require('minimist')\n```\n\n## var argv = parseArgs(args, opts={})\n\nReturn an argument object `argv` populated with the array arguments from `args`.\n\n`argv._` contains all the arguments that didn't have an option associated with\nthem.\n\nNumeric-looking arguments will be returned as numbers unless `opts.string` or\n`opts.boolean` is set for that argument name.\n\nAny arguments after `'--'` will not be parsed and will end up in `argv._`.\n\noptions can be:\n\n* `opts.string` - a string or array of strings argument names to always treat as\nstrings\n* `opts.boolean` - a boolean, string or array of strings to always treat as\nbooleans. if `true` will treat all double hyphenated arguments without equal signs\nas boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`)\n* `opts.alias` - an object mapping string names to strings or arrays of string\nargument names to use as aliases\n* `opts.default` - an object mapping string argument names to default values\n* `opts.stopEarly` - when true, populate `argv._` with everything after the\nfirst non-option\n* `opts['--']` - when true, populate `argv._` with everything before the `--`\nand `argv['--']` with everything after the `--`. Here's an example:\n* `opts.unknown` - a function which is invoked with a command line parameter not\ndefined in the `opts` configuration object. If the function returns `false`, the\nunknown option is not added to `argv`.\n\n```\n> require('./')('one two three -- four five --six'.split(' '), { '--': true })\n{ _: [ 'one', 'two', 'three' ],\n '--': [ 'four', 'five', '--six' ] }\n```\n\nNote that with `opts['--']` set, parsing for arguments still stops after the\n`--`.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install minimist\n```\n\n# license\n\nMIT\n",
|
|
"readmeFilename": "readme.markdown",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/substack/minimist.git"
|
|
},
|
|
"scripts": {
|
|
"coverage": "covert test/*.js",
|
|
"test": "tap test/*.js"
|
|
},
|
|
"testling": {
|
|
"files": "test/*.js",
|
|
"browsers": [
|
|
"ie/6..latest",
|
|
"ff/5",
|
|
"firefox/latest",
|
|
"chrome/10",
|
|
"chrome/latest",
|
|
"safari/5.1",
|
|
"safari/latest",
|
|
"opera/12"
|
|
]
|
|
},
|
|
"version": "1.2.0"
|
|
}
|