{"_id":"nano-argv","_rev":"5-853be6957612c6cef304817163840ffb","name":"nano-argv","description":"Super light-weight --argument value parser, with --bool key support","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"nano-argv","version":"1.0.0","description":"Super light-weight --argument value parser, with --bool key support","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/andrew-templeton/nano-argv.git"},"keywords":["small","cli","argument","parser","command","line","tool","args","argv"],"author":{"name":"Andrew Templeton"},"license":"MIT","bugs":{"url":"https://github.com/andrew-templeton/nano-argv/issues"},"homepage":"https://github.com/andrew-templeton/nano-argv#readme","gitHead":"8d73a5837f26e61c8e8a7749b844277d8ab8a879","_id":"nano-argv@1.0.0","_shasum":"f201afddac184f98ef36f85823ec31c270015c6d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"andrew-templeton","email":"a.templeton@wearetuple.co"},"dist":{"shasum":"f201afddac184f98ef36f85823ec31c270015c6d","tarball":"https://registry.npmjs.org/nano-argv/-/nano-argv-1.0.0.tgz","integrity":"sha512-ehCkGpPITRbhJwYVBDSgag13IlrLYFcs2LxipMpJJWWslIhK2zsVT12ozx54pYcHAeAX5AvfVgChXKsC/jtGXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLwKuDDagaivauUaMtB/K/sdNiUTN2VYE9aqBg8qDYoAiEAtCZtZMXMHo15hx1w6ClA/CFLCcFf3AVCGYZcT9LGlEI="}]},"maintainers":[{"name":"andrew-templeton","email":"a.templeton@wearetuple.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nano-argv-1.0.0.tgz_1462134072973_0.05601432197727263"}},"1.0.1":{"name":"nano-argv","version":"1.0.1","description":"Super light-weight --argument value parser, with --bool key support","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/andrew-templeton/nano-argv.git"},"keywords":["small","cli","argument","parser","command","line","tool","args","argv"],"author":{"name":"Andrew Templeton"},"license":"MIT","bugs":{"url":"https://github.com/andrew-templeton/nano-argv/issues"},"homepage":"https://github.com/andrew-templeton/nano-argv#readme","gitHead":"56fef9b18e1345706ff3e068b1cd2ac8d8dae46e","_id":"nano-argv@1.0.1","_shasum":"36e01da150d1f9d365412d363f6427dde4395c9e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"andrew-templeton","email":"a.templeton@wearetuple.co"},"dist":{"shasum":"36e01da150d1f9d365412d363f6427dde4395c9e","tarball":"https://registry.npmjs.org/nano-argv/-/nano-argv-1.0.1.tgz","integrity":"sha512-LZRQxdVToVBJVzE9DXNcl6ps/gZeAfGottTWrRpqN8CURPWlyaqDs5F52mybDmsBPjhfZHQahDY3xEoShwZr7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBo55lkfI62Z+wNhgOC+zEh0qBkheysi0FKj2Jevb49wIhAO2VUDJiL9L8Nc28L9Sq9rFB2AjzYpzAaeEQBpX9gKTb"}]},"maintainers":[{"name":"andrew-templeton","email":"a.templeton@wearetuple.co"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nano-argv-1.0.1.tgz_1462134211336_0.16510957502759993"}},"1.0.2":{"name":"nano-argv","version":"1.0.2","description":"Super light-weight --argument value parser, with --bool key support","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/andrew-templeton/nano-argv.git"},"keywords":["small","cli","argument","parser","command","line","tool","args","argv"],"author":{"name":"Andrew Templeton"},"license":"MIT","bugs":{"url":"https://github.com/andrew-templeton/nano-argv/issues"},"homepage":"https://github.com/andrew-templeton/nano-argv#readme","gitHead":"9e227c7cdbb320ef3e8bcb433e520b9397dec4a8","_id":"nano-argv@1.0.2","_shasum":"a0b7f3311056eaefcd6d82536c2dd310f88cf628","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"andrew-templeton","email":"a.templeton@wearetuple.co"},"dist":{"shasum":"a0b7f3311056eaefcd6d82536c2dd310f88cf628","tarball":"https://registry.npmjs.org/nano-argv/-/nano-argv-1.0.2.tgz","integrity":"sha512-QhT2VTxTrTbDMJrTJzydb0dpaq30dps00xc3YnURxy0OaqlVuHb8TlS536MFfVAUERqlIrVmJzBI2X4rKKOdQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzIXO8jhX21qJ+HIm9zs0Ev4DUb4iEOD78R/HAeK6I1wIgNb2ydUkgwZ10djAG48Fq0EvPdLZA1ljijkwhcBK2UbE="}]},"maintainers":[{"name":"andrew-templeton","email":"a.templeton@wearetuple.co"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nano-argv-1.0.2.tgz_1462135464798_0.560310194035992"}}},"readme":"\n\n# nano-argv\n\n\nA small module to do simple argument parsing.\n\nThis package on:\n- [GitHub](https://github.com/andrew-templeton/nano-argv)\n- [NPM](https://github.com/package/nano-argv)\n\n\n### Usage\n\nWhen you do this on the command line...:\n\n```\n$ node myscript.js --arg1 value1 --bool1 --arg2 value2 --BOOL2\n```\n\nThen you can do this in `myscript.js`...:\n\n```\nvar args = require('nano-argv');\nvar CLI_ARGS = args({\n\targ2: 'willBeOverridden',\n\targ3: 'aDefaultValue',\n\tbool3: true\n});\n\nconsole.log(CLI_ARGS);\n\n/*\nWill log:\n{\n\targ1: 'value1',\n\targ2: 'value2',\n\targ3: 'aDefaultValue',\n\tbool1: true,\n\tbool2: true,\n\tbool3: true\n}\n*/\n```\n\nThat is...:\n\n - All `--key`s on the CLI will be lowercased when output in the arguments hash by the module.\n - Any pairing `--key value` will set the value of key `key` to value `value` in the hash returned from the function\n - Any `--key1 --key2 value` sequence, that is, where `--key1` has another `--key2` flag immediately to the right, will make `--key1` a boolean argument flag set to `true`\n - Any `--lastkey` with no value to the right, and no other key (it is the last piece of the command) will also be treated as a boolean argument with the flag set to `true`\n - If you pass an object into the function in the JS, those will be used as the `defaults` for the output object of the function.\n - If you do not pass anything, `defaults` is simply set to `{}` and no keys will have defaults.\n - The `defaults` argument you use in the JS can only handle plain JSON objects, that is, no function values will work, `prototype` keys will not be inherited, and so on and so forth.\n\n\n## License: MIT\n\n## Author\nAndrew Templeton\n\n- [Twitter](https://twitter.com/ayetempleton)\n- [GitHub](https://github.com/andrew-templeton)\n- [NPM](https://npmjs.com/~andrew-templeton)\n\n\n\n\n","maintainers":[{"name":"andrew-templeton","email":"a.templeton@wearetuple.co"}],"time":{"modified":"2022-06-20T19:53:26.280Z","created":"2016-05-01T20:21:13.406Z","1.0.0":"2016-05-01T20:21:13.406Z","1.0.1":"2016-05-01T20:23:33.575Z","1.0.2":"2016-05-01T20:44:27.071Z"},"homepage":"https://github.com/andrew-templeton/nano-argv#readme","keywords":["small","cli","argument","parser","command","line","tool","args","argv"],"repository":{"type":"git","url":"git+https://github.com/andrew-templeton/nano-argv.git"},"author":{"name":"Andrew Templeton"},"bugs":{"url":"https://github.com/andrew-templeton/nano-argv/issues"},"license":"MIT","readmeFilename":"README.md"}