{"_id":"get-them-args","_rev":"1258903","name":"get-them-args","description":"Parse argument options","dist-tags":{"latest":"1.3.2"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"time":{"modified":"2021-10-15T06:41:37.000Z","created":"2016-12-17T12:26:37.082Z","1.3.2":"2018-07-15T13:35:22.899Z","1.3.1":"2017-08-15T18:06:14.947Z","1.3.0":"2017-07-18T21:36:24.183Z","1.2.2":"2017-04-23T22:15:43.388Z","1.2.1":"2017-03-14T08:48:03.778Z","1.2.0":"2017-03-13T13:28:49.208Z","1.1.1":"2017-03-13T11:10:26.844Z","1.0.1":"2017-01-21T09:52:44.766Z","1.0.0":"2016-12-17T12:26:37.082Z"},"users":{},"author":{"name":"Tiaan du Plessis"},"repository":{"type":"git","url":"https://github.com/tiaanduplessis/get-them-args.git"},"versions":{"1.3.2":{"name":"get-them-args","version":"1.3.2","description":"Parse argument options","license":"MIT","repository":{"type":"git","url":"https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan du Plessis"},"scripts":{"test":"jest","lint":"standard --fix","coverage":"jest --coverage"},"files":["index.js"],"keywords":["args","get-them-args","parser","arguments"],"devDependencies":{"jest":"^23.4.1","standard":"^11.0.1"},"standard":{"env":{"jest":true}},"licenseText":"The MIT License (MIT)\n\nCopyright (c) Tiaan <tiaanduplessis@hotmail.com> (tiaanduplessis.co.za)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"get-them-args@1.3.2","dist":{"shasum":"74a20ba8a4abece5ae199ad03f2bcc68fdfc9ba5","size":3030,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.3.2.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-them-args_1.3.2_1531661722829_0.9614836949199503"},"_hasShrinkwrap":false,"publish_time":1531661722899,"_cnpm_publish_time":1531661722899},"1.3.1":{"name":"get-them-args","version":"1.3.1","description":"Parse argument options","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan","email":"tiaanduplessis@hotmail.com","url":"tiaanduplessis.co.za"},"scripts":{"pretest":"npm run lint","test":"jest","lint":"standard","lint:fix":"standard --fix"},"files":["index.js"],"keywords":["args","get-them-args","parser"],"dependencies":{},"devDependencies":{"jest":"^20.0.4","standard":"^10.0.2"},"gitHead":"e0e997e7063478169f4fd84299f0708a2609d21c","_id":"get-them-args@1.3.1","_shasum":"ac1aeca013fda7db12591aaac129c58118e3daa8","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"ac1aeca013fda7db12591aaac129c58118e3daa8","size":3333,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.3.1.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-them-args-1.3.1.tgz_1502820374844_0.28579258522950113"},"directories":{},"publish_time":1502820374947,"_hasShrinkwrap":false,"_cnpm_publish_time":1502820374947},"1.3.0":{"name":"get-them-args","version":"1.3.0","description":"Parse argument options","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan","email":"tiaanduplessis@hotmail.com","url":"tiaanduplessis.co.za"},"scripts":{"pretest":"npm run lint","test":"jest","lint":"standard","lint:fix":"standard --fix"},"files":["index.js"],"keywords":["args","get-them-args","parser"],"dependencies":{},"devDependencies":{"jest":"^20.0.4","standard":"^10.0.2"},"gitHead":"2c54197190a0e4c5fb2297f02fa85bc91cbebe59","_id":"get-them-args@1.3.0","_shasum":"ec5aa59f73fe200e7fef477c31b91606e08e5af8","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"ec5aa59f73fe200e7fef477c31b91606e08e5af8","size":3329,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.3.0.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-them-args-1.3.0.tgz_1500413784008_0.09951125597581267"},"directories":{},"publish_time":1500413784183,"_hasShrinkwrap":false,"_cnpm_publish_time":1500413784183},"1.2.2":{"name":"get-them-args","version":"1.2.2","description":"Parse argument options","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan","email":"tiaanduplessis@hotmail.com","url":"tiaanduplessis.co.za"},"scripts":{"pretest":"npm run lint","test":"jest","lint":"standard","lint:fix":"standard --fix"},"files":["index.js"],"keywords":["args","get-them-args","parser"],"dependencies":{},"devDependencies":{"jest":"^19.0.2","standard":"^10.0.1"},"gitHead":"56ad27e2f11b5eeb4685be38158b42f472686fbf","_id":"get-them-args@1.2.2","_shasum":"0b8381d475099dee897fe502814092980f743393","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"0b8381d475099dee897fe502814092980f743393","size":3379,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.2.2.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/get-them-args-1.2.2.tgz_1492985741536_0.6220483824145049"},"directories":{},"publish_time":1492985743388,"_hasShrinkwrap":false,"_cnpm_publish_time":1492985743388},"1.2.1":{"name":"get-them-args","version":"1.2.1","description":"Parse argument options with ease","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan","email":"tiaanduplessis@hotmail.com","url":"tiaanduplessis.co.za"},"scripts":{"lint":"standard","lint:fix":"standard --fix"},"files":["index.js"],"keywords":["args","get-them-args","parser"],"dependencies":{},"devDependencies":{"jest":"^19.0.2","standard":"^9.0.1"},"gitHead":"3a94df87103bbeccffbfa894d90f294c1a98e340","_id":"get-them-args@1.2.1","_shasum":"9d6ead9caeaeccf5f75e747bcedca55fc2e6ed97","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"9d6ead9caeaeccf5f75e747bcedca55fc2e6ed97","size":3155,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.2.1.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/get-them-args-1.2.1.tgz_1489481283118_0.9717821178492159"},"directories":{},"publish_time":1489481283778,"_cnpm_publish_time":1489481283778,"_hasShrinkwrap":false},"1.2.0":{"name":"get-them-args","version":"1.2.0","description":"Parse argument options with ease","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan","email":"tiaanduplessis@hotmail.com","url":"tiaanduplessis.co.za"},"scripts":{"lint":"standard","lint:fix":"standard --fix"},"files":["index.js"],"keywords":["args","get-them-args","parser"],"dependencies":{},"devDependencies":{"jest":"^19.0.2","standard":"^9.0.1"},"gitHead":"3b00552c4b987a7f5ee6fac22531be1e31f7104f","_id":"get-them-args@1.2.0","_shasum":"7471600d7f382adf81959046d7d8a0196ecee85b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"7471600d7f382adf81959046d7d8a0196ecee85b","size":3147,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.2.0.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-them-args-1.2.0.tgz_1489411727438_0.8354783784598112"},"directories":{},"publish_time":1489411729208,"_cnpm_publish_time":1489411729208,"_hasShrinkwrap":false},"1.1.1":{"name":"get-them-args","version":"1.1.1","description":"Parse argument options with ease","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan","email":"tiaanduplessis@hotmail.com","url":"tiaanduplessis.co.za"},"scripts":{"lint":"standard","lint:fix":"standard --fix"},"files":["index.js"],"keywords":["args","get-them-args","parser"],"dependencies":{},"devDependencies":{"jest":"^19.0.2","standard":"^9.0.1"},"gitHead":"771879a0d902e20b8bc3e1dfa5e36361e3373711","_id":"get-them-args@1.1.1","_shasum":"2d97f20c286b5f2979dbf342005dd95be904ebb5","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"2d97f20c286b5f2979dbf342005dd95be904ebb5","size":2770,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.1.1.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-them-args-1.1.1.tgz_1489403424957_0.17176603409461677"},"directories":{},"publish_time":1489403426844,"_cnpm_publish_time":1489403426844,"_hasShrinkwrap":false},"1.0.1":{"name":"get-them-args","version":"1.0.1","description":"Parse argument options with ease","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan","email":"tiaanduplessis@hotmail.com","url":"tiaanduplessis.co.za"},"scripts":{"lint":"standard --verbose | snazzy","lint:fix":"standard --fix --verbose | snazzy","test":"standard && mocha","watch":"chokidar '**/*' -c 'npm test'"},"files":["index.js"],"keywords":["args","get-them-args","parser"],"dependencies":{},"devDependencies":{"chai":"^3.5.0","chokidar-cli":"^1.2.0","mocha":"^3.2.0","snazzy":"^5.0.0","standard":"^8.6.0"},"gitHead":"71ad9ee100f58e0187f03b5e3180df7e09cee458","_id":"get-them-args@1.0.1","_shasum":"fbe258f51f9dc816f01925470c847aca0eff5740","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"mightycrow","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"fbe258f51f9dc816f01925470c847aca0eff5740","size":2774,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.0.1.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/get-them-args-1.0.1.tgz_1484992364205_0.09943452663719654"},"directories":{},"publish_time":1484992364766,"_cnpm_publish_time":1484992364766,"_hasShrinkwrap":false},"1.0.0":{"name":"get-them-args","version":"1.0.0","description":"Parse argument options with ease","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tiaanduplessis/get-them-args.git"},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"author":{"name":"Tiaan","email":"tiaanduplessis@hotmail.com","url":"tiaanduplessis.co.za"},"scripts":{"lint":"standard --verbose | snazzy","lint:fix":"standard --fix --verbose | snazzy","test":"standard && mocha","watch":"chokidar '**/*' -c 'npm test'"},"files":["index.js"],"keywords":["args","get-them-args","parser"],"dependencies":{},"devDependencies":{"chai":"^3.5.0","chokidar-cli":"^1.2.0","mocha":"^3.2.0","snazzy":"^5.0.0","standard":"^8.6.0"},"gitHead":"93204f0f125d001d03fc3cc8ce61d1a6dbe6abc7","_id":"get-them-args@1.0.0","_shasum":"c194e9513494fe0c6ad554ad8b0f79fa950d9507","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.0.0","_npmUser":{"name":"mightycrow","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"c194e9513494fe0c6ad554ad8b0f79fa950d9507","size":2700,"noattachment":false,"key":"/get-them-args/-/get-them-args-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-them-args/download/get-them-args-1.0.0.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/get-them-args-1.0.0.tgz_1481977596472_0.9902667955029756"},"directories":{},"publish_time":1481977597082,"_cnpm_publish_time":1481977597082,"_hasShrinkwrap":false}},"readme":"\n# get-them-args\n[![package version](https://img.shields.io/npm/v/get-them-args.svg?style=flat-square)](https://npmjs.org/package/get-them-args)\n[![package downloads](https://img.shields.io/npm/dm/get-them-args.svg?style=flat-square)](https://npmjs.org/package/get-them-args)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/get-them-args.svg?style=flat-square)](https://npmjs.org/package/get-them-args)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/get-them-args.svg)](https://greenkeeper.io/)\n\n> Parse argument options\n\n## Table of Contents\n\n- [About](#about)\n- [Install](#install)\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [License](#License)\n\n\n## About\n\nSimple CLI argument parser hacked from [minimist](https://github.com/substack/minimist) that adds support for objects and additional initialization options.\n\n## Install\n\n```sh\n$ npm install --save get-them-args\n# Or\n$ yarn add get-them-args\n```\n\n## Usage\nTo use, provide arguments as argument:\n\n```js\nconst parse = require('get-them-args')\nconst options = {} // Options to be passed. CURRENTLY NONE AVAILABLE\n\n// $ node ./example.js --dir . --command foo\nconsole.log(parse(process.argv.slice(2) ))\n// { unknown: [], dir: '.', command: 'foo' }\n\nconsole.log(parse(process.argv))\n// { unknown: [], dir: '.', command: 'foo' }\n\nconsole.log(parse())\n// { unknown: [], dir: '.', command: 'foo' }\n\n```\n\nFor example, if the arguments provided are `--hello world --parse=all --no-drugs --make-friends -n 4 -t 5`, the function will return:\n\n```js\n{ unknown: [],\n  hello: 'world',\n  parse: 'all',\n  drugs: false,\n  'make-friends': true,\n  n: 4,\n  t: 5\n}\n\n```\n\nThere is also support for parsing objects:\n\n```sh\n\n$ node example.js --headers={\"Foo\": \"5\", \"bar\": \"6\"}\n# { unknown: [], headers: { Foo: 5, bar: 6 } }\n\n```\n\nAll unparsed arguments will end up in the `unknown` array. The following types of arguments are supported:\n\n```sh\n--key=value\n--key value\n--key # true\n--no-key # false\n-key=value\n-key value\n```\n\n## Contribute\n\n1. Fork it and create your feature branch: git checkout -b my-new-feature\n2. Commit your changes: git commit -am 'Add some feature'\n3. Push to the branch: git push origin my-new-feature \n4. Submit a pull request\n\n## License\n\nMIT\n    ","_attachments":{},"homepage":"https://github.com/tiaanduplessis/get-them-args","bugs":{"url":"https://github.com/tiaanduplessis/get-them-args/issues"},"license":"MIT"}