{"_id":"getopts","_rev":"331945","name":"getopts","description":"Parse CLI arguments.","dist-tags":{"latest":"2.3.0"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"time":{"modified":"2021-06-07T02:47:28.000Z","created":"2017-08-26T06:48:48.841Z","2.3.0":"2021-02-15T19:08:06.140Z","2.2.5":"2019-06-28T23:44:29.148Z","2.2.4":"2019-02-22T17:49:22.639Z","2.2.3":"2018-11-02T14:42:06.703Z","2.2.2":"2018-10-19T09:10:17.952Z","2.2.1":"2018-08-24T08:44:09.956Z","2.2.0":"2018-08-17T15:33:22.003Z","2.1.2":"2018-07-18T15:02:20.214Z","2.1.1":"2018-07-17T09:00:00.629Z","2.1.0":"2018-07-17T08:57:46.160Z","2.0.6":"2018-04-10T05:51:37.814Z","2.0.5":"2018-03-17T15:14:25.437Z","2.0.4":"2018-03-17T15:10:12.956Z","2.0.3":"2018-03-17T15:02:49.366Z","2.0.2":"2018-03-17T14:58:22.399Z","2.0.1":"2018-02-27T09:10:17.714Z","2.0.0":"2017-11-12T04:00:39.751Z","1.0.2":"2017-10-28T12:11:59.795Z","1.0.1":"2017-10-28T10:10:35.848Z","1.0.0":"2017-10-28T09:57:09.110Z","0.0.1":"2017-08-26T06:48:48.841Z"},"users":{"isayme":true,"tracker1":true,"detj":true,"cj_joulain":true,"jtittsler":true},"author":{"name":"Jorge Bucaran"},"repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"versions":{"2.3.0":{"name":"getopts","version":"2.3.0","type":"module","main":"index.cjs","types":"index.d.ts","description":"Parse CLI arguments.","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"license":"MIT","exports":{"./package.json":"./package.json",".":{"require":"./index.cjs","import":"./index.js"}},"author":{"name":"Jorge Bucaran"},"keywords":["cli","argv","flags","parse","getopts","minimist","cli-parser"],"scripts":{"test":"c8 twist tests/*.js","build":"node -e \"fs.writeFileSync('index.cjs',fs.readFileSync('index.js','utf8').replace(/export default/,'module.exports ='),'utf8')\"","deploy":"npm test && git commit --all --message $tag && git tag --sign $tag --message $tag && git push && git push --tags","release":"tag=$npm_package_version npm run deploy && npm publish --access public","prepare":"npm run build"},"devDependencies":{"c8":"*","twist":"*"},"gitHead":"35dfad8997697051234aca992eb90c7abd7a5465","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.3.0","_nodeVersion":"15.6.0","_npmVersion":"7.4.0","dist":{"shasum":"71e5593284807e03e2427449d4f6712a268666f4","size":5045,"noattachment":false,"key":"/getopts/-/getopts-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.3.0.tgz"},"_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"directories":{},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.3.0_1613416085998_0.3745811421644454"},"_hasShrinkwrap":false,"publish_time":1613416086140,"_cnpm_publish_time":1613416086140},"2.2.5":{"name":"getopts","description":"Parse CLI options, better.","version":"2.2.5","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"keywords":["getopts","cli","argv","flags","yargs","options","minimist","cli-parser"],"scripts":{"test":"nyc -r lcov testmatrix test/*.test.js && nyc report && tsc -p test/ts","release":"v=$npm_package_version; git commit -am $v && git tag -s $v -m $v && git push && git push --tags && npm publish"},"devDependencies":{"nyc":"^14.1.1","testmatrix":"^0.1.2","typescript":"^3.5.2"},"gitHead":"5ae12152db4df6395159eb1c90a4ebc577149237","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.2.5","_nodeVersion":"12.5.0","_npmVersion":"6.9.0","dist":{"shasum":"67a0fe471cacb9c687d817cab6450b96dde8313b","size":6181,"noattachment":false,"key":"/getopts/-/getopts-2.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.2.5.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.2.5_1561765468955_0.5661797024390485"},"_hasShrinkwrap":false,"publish_time":1561765469148,"_cnpm_publish_time":1561765469148},"2.2.4":{"name":"getopts","description":"High performance Node.js CLI options parser.","version":"2.2.4","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"keywords":["getopts","cli","argv","cli-parser"],"scripts":{"test":"nyc -r lcov testmatrix test/*.test.js && nyc report && tsc -p test/ts","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^12.0.2","testmatrix":"^0.1.2","typescript":"^3.1.3"},"gitHead":"7f24cbe87d49367324f08bad49ce031bd98bf347","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.2.4","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"shasum":"3137fe8a5fddf304904059a851bdc1c22f0f54fb","size":5581,"noattachment":false,"key":"/getopts/-/getopts-2.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.2.4.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.2.4_1550857762520_0.011479496462697858"},"_hasShrinkwrap":false,"publish_time":1550857762639,"_cnpm_publish_time":1550857762639},"2.2.3":{"name":"getopts","description":"High performance Node.js CLI options parser.","version":"2.2.3","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"keywords":["getopts","cli","argv","cli-parser"],"scripts":{"test":"nyc -r lcov testmatrix test/*.test.js && nyc report && tsc -p test/ts","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^12.0.2","testmatrix":"^0.1.2","typescript":"^3.1.3"},"gitHead":"c0fde8bb9c602dcef3363fdcb8b6efb2dd3b7da0","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.2.3","_npmVersion":"5.0.1","_nodeVersion":"7.2.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"11d229775e2ec2067ed8be6fcc39d9b4bf39cf7d","size":5690,"noattachment":false,"key":"/getopts/-/getopts-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.2.3.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.2.3_1541169726579_0.31453730383087386"},"_hasShrinkwrap":false,"publish_time":1541169726703,"_cnpm_publish_time":1541169726703},"2.2.2":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.2.2","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"keywords":["getopts","cli","argv","cli-parser"],"scripts":{"test":"nyc -r lcov testmatrix test/*.test.js && nyc report && tsc -p test/ts","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^12.0.2","testmatrix":"^0.1.2","typescript":"^3.1.3"},"gitHead":"dbf02b5a1cb61757dbb284ab511cdd9a04846ec0","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.2.2","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"a6ada98961c3d1f099e88f0698fabe716f8a253c","size":5386,"noattachment":false,"key":"/getopts/-/getopts-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.2.2.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.2.2_1539940217850_0.506362886424792"},"_hasShrinkwrap":false,"publish_time":1539940217952,"_cnpm_publish_time":1539940217952},"2.2.1":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.2.1","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js","getopts.d.ts"],"keywords":["getopts","cli","argv","cli-parser"],"scripts":{"test":"nyc -r lcov testmatrix test/*.test.js && nyc report && tsc -p test/ts","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^12.0.2","testmatrix":"^0.1.2","typescript":"^3.0.1"},"gitHead":"447efd4ee5d32eb2ddc565eb9d303cc4dfb76315","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.2.1","_npmVersion":"6.3.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"68120d77abf420e1ade52291977ce050f33ce54e","size":5348,"noattachment":false,"key":"/getopts/-/getopts-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.2.1.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.2.1_1535100249843_0.750588648298202"},"_hasShrinkwrap":false,"publish_time":1535100249956,"_cnpm_publish_time":1535100249956},"2.2.0":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.2.0","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js","getopts.d.ts"],"keywords":["getopts","cli","argv","cli-parser"],"scripts":{"test":"nyc -r lcov testmatrix test/*.test.js && nyc report && tsc -p test/ts","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^12.0.2","testmatrix":"^0.1.2","typescript":"^3.0.1"},"gitHead":"eb1306d459a79d13078f7ecbd976ad5ffe84821a","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.2.0","_npmVersion":"6.3.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"22cfc88e666b00a15342c87188f022b68a07f2c3","size":5204,"noattachment":false,"key":"/getopts/-/getopts-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.2.0.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.2.0_1534520001926_0.820437487480866"},"_hasShrinkwrap":false,"publish_time":1534520002003,"_cnpm_publish_time":1534520002003},"2.1.2":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.1.2","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js","getopts.d.ts"],"keywords":["getopts","cli","argv","cli-parser"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report && tsc -p test/ts","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^12.0.2","tape":"^4.9.1","typescript":"^2.9.2"},"gitHead":"f8b4b8e7e454167ffeaa72c8ad5722b7661c3fb2","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.1.2","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"ecbd171ff3099ac06e8162d58ab605ecd6f4feef","size":3599,"noattachment":false,"key":"/getopts/-/getopts-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.1.2.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.1.2_1531926140158_0.026647870239417504"},"_hasShrinkwrap":false,"publish_time":1531926140214,"_cnpm_publish_time":1531926140214},"2.1.1":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.1.1","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js","getopts.d.ts"],"keywords":["getopts","cli","argv","cli-parser"],"scripts":{"ts":"tsc test/ts/index.ts","test":"nyc -r lcov tape test/*.js && nyc report && tsc -p test/ts","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^12.0.2","tape":"^4.9.1","typescript":"^2.9.2"},"gitHead":"5badfb823b6ed322b97812af253deb635cdb764a","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.1.1","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"330d29c59d0a1b4ec7e0e4e43a8d1dd42ccee565","size":3578,"noattachment":false,"key":"/getopts/-/getopts-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.1.1.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.1.1_1531818000550_0.8240637229572805"},"_hasShrinkwrap":false,"publish_time":1531818000629,"_cnpm_publish_time":1531818000629},"2.1.0":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.1.0","main":"index.js","types":"getopts.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js","getopts.d.ts"],"keywords":["getopts","cli","argv","cli-parser"],"scripts":{"ts":"tsc test/ts/index.ts","test":"nyc -r lcov tape test/*.js && nyc report && tsc -p test/ts","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^12.0.2","tape":"^4.9.1","typescript":"^2.9.2"},"gitHead":"e455e4bff2132efa453deb1ac3d02681487a9e18","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"ce9f1acd3c888bce04d8afee7a5c9724f1228b72","size":3651,"noattachment":false,"key":"/getopts/-/getopts-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.1.0.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.1.0_1531817866077_0.6448064853484341"},"_hasShrinkwrap":false,"publish_time":1531817866160,"_cnpm_publish_time":1531817866160},"2.0.6":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.0.6","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.6.0","tape":"^4.9.0"},"gitHead":"3743d42316eac8944b37e2714a69efdde4dfc746","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.0.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"4788d533a977527e79efd57b5e742ffa0dd33105","size":3359,"noattachment":false,"key":"/getopts/-/getopts-2.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.0.6.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.0.6_1523339497766_0.0989019330542682"},"_hasShrinkwrap":false,"publish_time":1523339497814,"_cnpm_publish_time":1523339497814},"2.0.5":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.0.5","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.6.0","tape":"^4.9.0"},"gitHead":"57bb80f6323c77f5c4be2225746e75f8473a71bd","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.0.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"e4d3948e87fd9fb50c8a0f2912f4de16301fb8ae","size":3356,"noattachment":false,"key":"/getopts/-/getopts-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.0.5.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.0.5_1521299665392_0.02334178811792853"},"_hasShrinkwrap":false,"publish_time":1521299665437,"_cnpm_publish_time":1521299665437},"2.0.4":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.0.4","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.6.0","tape":"^4.9.0"},"gitHead":"58078ae108de05f6be96a2c893afef291c25ece5","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"6b032e5d74f3e1a4ea138682d56b00165dbbd5f2","size":3358,"noattachment":false,"key":"/getopts/-/getopts-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.0.4.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.0.4_1521299412897_0.14774182194496288"},"_hasShrinkwrap":false,"publish_time":1521299412956,"_cnpm_publish_time":1521299412956},"2.0.3":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.0.3","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.6.0","tape":"^4.9.0"},"gitHead":"880f9f479b8ef3d1e032465c3228dca6967576c2","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"bde088456478f422e16f3e668a0cdb03b0eb8a27","size":3354,"noattachment":false,"key":"/getopts/-/getopts-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.0.3.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.0.3_1521298969289_0.5953378461599064"},"_hasShrinkwrap":false,"publish_time":1521298969366,"_cnpm_publish_time":1521298969366},"2.0.2":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.0.2","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.6.0","tape":"^4.9.0"},"gitHead":"72cc5cd465e29c8b1b2be784de2adf4d378b5023","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"03de988ffcdf8ccf3add91cee7ac45d6e594cd15","size":3355,"noattachment":false,"key":"/getopts/-/getopts-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.0.2.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.0.2_1521298702328_0.06241861712918073"},"_hasShrinkwrap":false,"publish_time":1521298702399,"_cnpm_publish_time":1521298702399},"2.0.1":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.0.1","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jorgebucaran/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.4.1","tape":"^4.8.0"},"gitHead":"973c8ae10514d4bfc854cd0243ae14071d67ec45","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"homepage":"https://github.com/jorgebucaran/getopts#readme","_id":"getopts@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"shasum":"e0fc79d78ba2e39dba6f02551d186cd34951c81a","size":3300,"noattachment":false,"key":"/getopts/-/getopts-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.0.1.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts_2.0.1_1519722617581_0.4492710838897509"},"_hasShrinkwrap":false,"publish_time":1519722617714,"_cnpm_publish_time":1519722617714},"2.0.0":{"name":"getopts","description":"Node.js CLI options parser.","version":"2.0.0","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/getopts/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.2.1","tape":"^4.8.0"},"gitHead":"3cbbbf93875bb5d78383879739234b7d93c26e91","bugs":{"url":"https://github.com/getopts/getopts/issues"},"homepage":"https://github.com/getopts/getopts#readme","_id":"getopts@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"jorgebucaran","email":"jbucaran@gmail.com"},"dist":{"shasum":"e9119f3e79d22d0685b77fbe78d5cd6e19ca1af0","size":3304,"noattachment":false,"key":"/getopts/-/getopts-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-2.0.0.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts-2.0.0.tgz_1510459239512_0.8849529060535133"},"directories":{},"publish_time":1510459239751,"_hasShrinkwrap":false,"_cnpm_publish_time":1510459239751},"1.0.2":{"name":"getopts","description":"Node.js CLI options parser.","version":"1.0.2","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/getopts/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.2.1","tape":"^4.8.0"},"gitHead":"ac0b674e92f5692e29d3f8e5939a2f3aac071c93","bugs":{"url":"https://github.com/getopts/getopts/issues"},"homepage":"https://github.com/getopts/getopts#readme","_id":"getopts@1.0.2","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"jorgebucaran","email":"jbucaran@gmail.com"},"dist":{"shasum":"e876299fecfc6c2b28e97520da0a821171727d8c","size":3288,"noattachment":false,"key":"/getopts/-/getopts-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-1.0.2.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts-1.0.2.tgz_1509192719718_0.9776504077017307"},"directories":{},"publish_time":1509192719795,"_hasShrinkwrap":false,"_cnpm_publish_time":1509192719795},"1.0.1":{"name":"getopts","description":"Node.js CLI options parser.","version":"1.0.1","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/getopts/getopts.git"},"author":{"name":"Jorge Bucaran"},"files":["index.js"],"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","format":"prettier --semi false --write '*.js'","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.2.1","prettier":"~1.7.4","tape":"^4.8.0"},"gitHead":"08bf5a530d618c209cbe77e414d07d78850c5c5c","bugs":{"url":"https://github.com/getopts/getopts/issues"},"homepage":"https://github.com/getopts/getopts#readme","_id":"getopts@1.0.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"jorgebucaran","email":"jbucaran@gmail.com"},"dist":{"shasum":"34ed1fd4f07a3d105bd028dd29b175350748eff2","size":3082,"noattachment":false,"key":"/getopts/-/getopts-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-1.0.1.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts-1.0.1.tgz_1509185435780_0.8620950672775507"},"directories":{},"publish_time":1509185435848,"_cnpm_publish_time":1509185435848,"_hasShrinkwrap":false},"1.0.0":{"name":"getopts","description":"Node.js CLI options parser.","version":"1.0.0","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/getopts/getopts.git"},"author":{"name":"Jorge Bucaran"},"keywords":["cli","argv","cli-parser","getopts"],"scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","format":"prettier --semi false --write '*.js'","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"devDependencies":{"nyc":"^11.2.1","prettier":"~1.7.4","tape":"^4.8.0"},"gitHead":"4883aa07ae501105bf1124546d8b4e058260f979","bugs":{"url":"https://github.com/getopts/getopts/issues"},"homepage":"https://github.com/getopts/getopts#readme","_id":"getopts@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"jorgebucaran","email":"jbucaran@gmail.com"},"dist":{"shasum":"ff62f879a3da48f09b60c081c84c76119024e778","size":3895,"noattachment":false,"key":"/getopts/-/getopts-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-1.0.0.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts-1.0.0.tgz_1509184628880_0.2231759161222726"},"directories":{},"publish_time":1509184629110,"_hasShrinkwrap":false,"_cnpm_publish_time":1509184629110},"0.0.1":{"name":"getopts","version":"0.0.1","description":"","main":"index.js","scripts":{"test":"exit 1"},"keywords":[],"author":"","license":"MIT","_id":"getopts@0.0.1","_npmVersion":"5.0.1","_nodeVersion":"7.2.0","_npmUser":{"name":"jbucaran","email":"jbucaran@gmail.com"},"dist":{"shasum":"c2e1366d066f59f3be669d2ed13b160c651bf93f","size":230,"noattachment":false,"key":"/getopts/-/getopts-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/getopts/download/getopts-0.0.1.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/getopts-0.0.1.tgz_1503730128069_0.2537382796872407"},"directories":{},"publish_time":1503730128841,"_hasShrinkwrap":false,"_cnpm_publish_time":1503730128841}},"readme":"# Getopts\n\n> Parse CLI arguments.\n\n- Lightweight drop-in replacement for `minimist` and clones.\n- Small (180 LOC), focused, no dependencies.\n- Up to [6x faster](#benchmarks) than alternatives!\n\nBreak up command-line arguments into key-value pairs for easy look-up and retrieval. Built upon [utility conventions](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02) that have been used for decades, Getopts sane defaults help you write CLI tools that look and feel like the real deal.\n\n```console\n$ example --type=module -o main.js *.{js,json}\n```\n\n```js\nimport getopts from \"getopts\"\n\nconst options = getopts(process.argv.slice(2), {\n  alias: {\n    output: [\"o\", \"f\"],\n    type: \"t\",\n  },\n})\n```\n\nThe result is an object populated with all the parsed arguments.\n\n```js\n{\n  _: [\"index.js\", \"package.json\"],\n  output: \"main.js\",\n  type: \"module\",\n  o: \"main.js\",\n  f: \"main.js\",\n  t: \"module\",\n}\n```\n\n## Installation\n\n```console\nnpm install getopts\n```\n\n## Parsing rules\n\n### Short options\n\nA short option consists of a `-` followed by a single alphabetic character. Multiple options can be grouped together without spaces. Short options are boolean by default unless followed by an [operand](#operand) (non-option) or if adjacent to any non-alphabetic characters:\n\n```js\ngetopts([\"-ab\", \"-c\"]) //=> { _: [], a:true, b:true, c:true }\n```\n\n```js\ngetopts([\"-a\", \"alpha\"]) //=> { _: [], a:\"alpha\" }\n```\n\n```js\ngetopts([\"-abc1\"]) //=> { _: [], a:true, b:true, c:1 }\n```\n\nUse [`opts.string`](#optsstring) to parse an option as a string regardless.\n\n```js\ngetopts([\"-kF12\"], {\n  string: [\"k\"],\n}) //=> { _: [], k:\"F12\" }\n```\n\nThe first operand following an option will be used as its value. Use [`opts.boolean`](#optsboolean) to specify that an option should be parsed as a boolean regardless, causing the following argument to be treated as an operand instead.\n\n```js\ngetopts([\"-a\", \"alpha\"], {\n  boolean: [\"a\"],\n}) //=> { _: [\"alpha\"], a:true }\n```\n\nAny character listed in the ASCII table can be used as a short option if it's the first character after the dash.\n\n```js\ngetopts([\"-9\", \"-#10\", \"-%0.01\"]) //=> { _:[], 9:true, #:10, %:0.01 }\n```\n\n### Long options\n\nA long option consists of a `--` followed by a name and a value separated by an `=`. Long options without a value are boolean by default.\n\n```js\ngetopts([\"--turbo\", \"--warp=10\"]) //=> { _: [], turbo:true, warp:10 }\n```\n\n```js\ngetopts([\"--warp=e=mc^2\"]) //=> { _: [], warp:\"e=mc^2\" }\n```\n\n```js\ngetopts([\"--@\", \"alpha\"]) //=> { _: [], @:\"alpha\" }\n```\n\nNegated options start with `--no-` and are always `false`.\n\n```js\ngetopts([\"--no-turbo\"]) //=> { _: [], turbo:false }\n```\n\n### Operands\n\nEvery non-option argument is an operand. Operands are saved to the `result._` operands array.\n\n```js\ngetopts([\"alpha\", \"-w9\", \"bravo\"]) //=> { _: [\"alpha\", \"bravo\"], w:9 }\n```\n\n```js\ngetopts([\"--code=alpha\", \"bravo\"]) //=> { _: [\"bravo\"], code:\"alpha\" }\n```\n\nEverything after a standalone `--` is an operand.\n\n```js\ngetopts([\"--alpha\", \"--\", \"--bravo\", \"--turbo\"]) //=> { _:[\"--bravo\", \"--turbo\"], alpha:true }\n```\n\nA single `-` is also treated as an operand.\n\n```js\ngetopts([\"--turbo\", \"-\"]) //=> { _:[\"-\"], turbo:true }\n```\n\n### Other\n\nOptions specified as boolean or string will be added to the result object as `false` or `\"\"` (even if missing from the arguments array).\n\n```js\ngetopts([], {\n  string: [\"a\"],\n  boolean: [\"b\"],\n}) //=> { _:[], a:\"\", b:false }\n```\n\nRepeated options are stored as arrays with every value in order of appearance.\n\n```js\ngetopts([\"-x?alpha=bravo\", \"-x3.14\", \"-x\"] //=> { _:[], a:[\"?alpha=bravo\", 3.14, true] }\n```\n\nA value may contain newlines or other control characters.\n\n```js\ngetopts([\"--text=top\\n\\tbottom\"]) //=> { _:[], text:\"top\\n\\tbottom\" }\n```\n\n`=\"false\"` is converted to boolean by default.\n\n```js\ngetopts([\"--turbo=false\"]) //=> { _:[], turbo:false }\n```\n\n## API\n\n### `getopts(argv, opts)`\n\nParse command-line arguments. Returns an object mapping argument names to their values.\n\n### `argv[]`\n\nAn array of arguments, usually [`process.argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv).\n\n### `opts.alias`\n\nAn object of option aliases. An alias can be a string or an array of strings. Aliases let you declare substitute names for an option, e.g., the short (abbreviated) and long (canonical) variations.\n\n```js\ngetopts([\"-t\"], {\n  alias: {\n    turbo: [\"t\", \"T\"],\n  },\n}) //=> { _:[], t:true, T:true, turbo:true }\n```\n\n### `opts.boolean`\n\nAn array of options to parse as boolean. In the example below, `t` is parsed as a boolean, causing the following argument to be treated as an operand.\n\n```js\ngetopts([\"-t\", \"alpha\"], {\n  boolean: [\"t\"],\n}) //=> { _:[\"alpha\"], t:true }\n```\n\n### `opts.string`\n\nAn array of flags to parse as strings. In the example below, `t` is parsed as a string, causing all adjacent characters to be treated as a single value and not as individual options.\n\n```js\ngetopts([\"-atabc\"], {\n  string: [\"t\"],\n}) //=> { _:[], a:true, t:\"abc\" }\n```\n\n### `opts.default`\n\nAn object of default values for options not present in the arguments array.\n\n```js\ngetopts([\"--warp=10\"], {\n  default: {\n    warp: 15,\n    turbo: true,\n  },\n}) //=> { _:[], warp:10, turbo:true }\n```\n\n### `opts.unknown()`\n\nWe call this function for each unknown option. Return `false` to discard the option. Unknown options are those that appear in the arguments array, but are not in `opts.string`, `opts.boolean`, `opts.default`, or `opts.alias`.\n\n```js\ngetopts([\"-abc\"], {\n  unknown: (option) => \"a\" === option,\n}) //=> { _:[], a:true }\n```\n\n### `opts.stopEarly`\n\nA boolean property. If `true`, the operands array `_` will be populated with all the arguments after the first operand.\n\n```js\ngetopts([\"-w9\", \"alpha\", \"--turbo\", \"bravo\"], {\n  stopEarly: true,\n}) //=> { _:[\"alpha\", \"--turbo\", \"bravo\"], w:9 }\n```\n\nThis property is useful when implementing sub-commands in a CLI.\n\n```js\nimport getopts from \"getopts\"\nimport { install, update, uninstall } from \"./commands.js\"\n\nconst options = getopts(process.argv.slice(2), {\n  stopEarly: true,\n})\n\nconst [command, subargv] = options._\n\nif (command === \"install\") {\n  install(subargv)\n} else if (command === \"update\") {\n  update(subargv)\n} else if (command === \"uninstall\") {\n  uninstall(subargv)\n}\n```\n\n## Benchmarks\n\n```console\nnpm --prefix bench start\n```\n\n## License\n\n[MIT](LICENSE.md)\n","_attachments":{},"homepage":"https://github.com/jorgebucaran/getopts#readme","bugs":{"url":"https://github.com/jorgebucaran/getopts/issues"},"license":"MIT"}