{"_id":"command-line-commands","_rev":"335027","name":"command-line-commands","description":"Add a git-like command interface to your app.","dist-tags":{"latest":"3.0.2"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-08T13:16:04.000Z","created":"2015-11-27T18:42:58.977Z","3.0.2":"2020-10-31T10:40:07.136Z","3.0.1":"2019-09-18T21:48:44.748Z","3.0.0":"2019-09-18T21:47:29.964Z","2.0.1":"2017-07-13T10:07:54.651Z","2.0.0":"2017-01-16T21:47:43.580Z","1.0.4":"2016-08-24T19:28:24.895Z","1.0.3":"2016-05-29T16:18:54.734Z","1.0.2":"2016-05-23T10:23:44.655Z","1.0.1":"2016-05-16T22:59:39.546Z","1.0.0":"2016-05-16T22:37:30.339Z","0.1.2":"2016-01-09T10:52:21.592Z","0.1.1":"2015-11-28T12:01:04.139Z","0.1.0":"2015-11-28T11:23:36.071Z","0.0.0":"2015-11-27T18:42:58.977Z"},"users":{"alfeo92":true,"matiasmarani":true,"jjdanois":true,"hkgsherlock":true},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"versions":{"3.0.2":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.2","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=8"},"scripts":{"test":"test-runner --files test.js","docs":"jsdoc2md -t README.hbs index.js > README.md","cover":"istanbul cover ./node_modules/.bin/test-runner -- --files test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"dependencies":{"array-back":"^4.0.1"},"devDependencies":{"command-line-args":"^5.1.1","command-line-usage":"^6.1.0","coveralls":"^3.1.0","jsdoc-to-markdown":"^5.0.3","minimist":"^1.2.5","test-runner":"^0.6.3"},"gitHead":"25f7538b323db9562f6a1641deff27581e00e471","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@3.0.2","_nodeVersion":"15.0.1","_npmVersion":"7.0.3","dist":{"shasum":"53872a1181db837f21906b1228e260a4eeb42ee4","size":3901,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-3.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-line-commands_3.0.2_1604140806991_0.25337100645616273"},"_hasShrinkwrap":false,"publish_time":1604140807136,"_cnpm_publish_time":1604140807136},"3.0.1":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.1","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"lib/command-line-commands.js","keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=8"},"scripts":{"test":"test-runner --files test.js","docs":"jsdoc2md -t README.hbs index.js > README.md","cover":"istanbul cover ./node_modules/.bin/test-runner -- --files test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"dependencies":{"array-back":"^4.0.0"},"devDependencies":{"command-line-args":"^5.1.1","command-line-usage":"^6.0.2","coveralls":"^3.0.6","jsdoc-to-markdown":"^5.0.1","minimist":"^1.2.0","test-runner":"^0.6.0"},"gitHead":"1311f0113aa4aae441aa0552eaa1dc04960889e6","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@3.0.1","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"shasum":"1d3e8ae0cf47359a3b282064f78c5d40797f1103","size":3910,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-3.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-line-commands_3.0.1_1568843324573_0.6009286737390847"},"_hasShrinkwrap":false,"publish_time":1568843324748,"_cnpm_publish_time":1568843324748},"3.0.0":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.0","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"lib/command-line-commands.js","keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=8"},"scripts":{"test":"test-runner --files test.js","docs":"jsdoc2md -t README.hbs index.js > README.md","cover":"istanbul cover ./node_modules/.bin/test-runner -- --files test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"dependencies":{"array-back":"^4.0.0"},"devDependencies":{"command-line-args":"^5.1.1","command-line-usage":"^6.0.2","coveralls":"^3.0.6","jsdoc-to-markdown":"^5.0.1","minimist":"^1.2.0","test-runner":"^0.6.0"},"gitHead":"6155733a487a1c6cd65619650e06aab4296bbba5","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@3.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"shasum":"9f7ccacd4667dc65c0297d46cc986db25a424ec9","size":3686,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-3.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-line-commands_3.0.0_1568843249878_0.6908880116798339"},"_hasShrinkwrap":false,"publish_time":1568843249964,"_cnpm_publish_time":1568843249964},"2.0.1":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.1","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"lib/command-line-commands.js","files":["lib"],"keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner --files test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner -- --files test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"dependencies":{"array-back":"^2.0.0"},"devDependencies":{"command-line-args":"^4.0.6","command-line-usage":"^4.0.0","coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","minimist":"^1.2.0","test-runner":"^0.4.0"},"gitHead":"0ef613ea7a22700126ff898a3ce6cbf862ecf286","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@2.0.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.4","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"c58aa13dc78c06038ed67077e57ad09a6f858f46","size":3842,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-2.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-line-commands-2.0.1.tgz_1499940473753_0.9687853618524969"},"directories":{},"publish_time":1499940474651,"_hasShrinkwrap":false,"_cnpm_publish_time":1499940474651},"2.0.0":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.0","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"lib/command-line-commands.js","files":["lib"],"keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner --files test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner -- --files test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"dependencies":{"array-back":"^1.0.4"},"devDependencies":{"command-line-args":"^3.0.5","command-line-usage":"^4.0.0","coveralls":"^2.11.15","jsdoc-to-markdown":"^2.0.1","minimist":"^1.2.0","test-runner":"^0.3.0"},"gitHead":"bb8e80054e9b32609a838b602d0e82ecc001402f","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@2.0.0","_shasum":"1abda11633e8d37bcb1a39f73b8d939a2d85ef39","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"1abda11633e8d37bcb1a39f73b8d939a2d85ef39","size":3831,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-2.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/command-line-commands-2.0.0.tgz_1484603263026_0.10574737377464771"},"directories":{},"publish_time":1484603263580,"_cnpm_publish_time":1484603263580,"_hasShrinkwrap":false},"1.0.4":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.4","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"index","keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner --files test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5","cover":"istanbul cover ./node_modules/.bin/test-runner -- --files test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"dependencies":{"array-back":"^1.0.3","feature-detect-es6":"^1.3.1"},"devDependencies":{"babel-preset-es2015":"^6.13.2","command-line-args":"^3.0.1","command-line-usage":"^3.0.3","core-assert":"^0.2.0","coveralls":"^2.11.12","jsdoc-to-markdown":"^2.0.0-alpha.12","minimist":"^1.2.0","test-runner":"^0.2.3"},"standard":{"ignore":["es5"]},"gitHead":"43dbcf90b763373615a4148c63b8c751fe388322","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@1.0.4","_shasum":"034f9b167b5188afbdcf6b2efbb150fc8442c32b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"034f9b167b5188afbdcf6b2efbb150fc8442c32b","size":62612,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-1.0.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/command-line-commands-1.0.4.tgz_1472066902090_0.6206389509607106"},"directories":{},"publish_time":1472066904895,"_cnpm_publish_time":1472066904895,"_hasShrinkwrap":false},"1.0.3":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.3","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"index","keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","feature-detect-es6":"^1.3.0"},"devDependencies":{"babel-preset-es2015":"^6.9.0","command-line-usage":"^3.0.1","jsdoc-to-markdown":"^1.3.6","minimist":"^1.2.0","tape":"^4.5.1"},"standard":{"ignore":["es5"]},"gitHead":"2764ff49a073308cc60e3688bac7d2bf68ad45a5","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@1.0.3","_shasum":"d5261cb7a9d41a187486a7c996acb5b9d350c1d9","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"d5261cb7a9d41a187486a7c996acb5b9d350c1d9","size":62668,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-1.0.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/command-line-commands-1.0.3.tgz_1464538732773_0.44168898835778236"},"directories":{},"publish_time":1464538734734,"_cnpm_publish_time":1464538734734,"_hasShrinkwrap":false},"1.0.2":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.2","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"index","keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","command-line-args":"^2.1.6","feature-detect-es6":"^1.2.0"},"devDependencies":{"babel-preset-es2015":"^6.6.0","command-line-usage":"^3.0.0","jsdoc-to-markdown":"^1.3.6","tape":"^4.5.1"},"standard":{"ignore":["es5"]},"gitHead":"8acd376e3aff68111e0b284a44c2710a52c32d38","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@1.0.2","_shasum":"704fe07db402f57530b2fbf403dc4a17613d21f6","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"704fe07db402f57530b2fbf403dc4a17613d21f6","size":5338,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-1.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/command-line-commands-1.0.2.tgz_1463999023671_0.47346889576874673"},"directories":{},"publish_time":1463999024655,"_cnpm_publish_time":1463999024655,"_hasShrinkwrap":false},"1.0.1":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.1","description":"Add a git-like command interface to your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"index","keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","command-line-args":"^2.1.6","feature-detect-es6":"^1.2.0"},"devDependencies":{"babel-preset-es2015":"^6.6.0","command-line-usage":"^3.0.0","jsdoc-to-markdown":"^1.3.6","tape":"^4.5.1"},"standard":{"ignore":["es5"]},"gitHead":"9d57f86280407bef402811f0f8e3cd3c1b85a8c8","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@1.0.1","_shasum":"4909c522837fb86f8581a1586b545fb5d6bf6a6f","_from":".","_npmVersion":"3.9.1","_nodeVersion":"6.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"4909c522837fb86f8581a1586b545fb5d6bf6a6f","size":5127,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/command-line-commands-1.0.1.tgz_1463439577242_0.02454022318124771"},"directories":{},"publish_time":1463439579546,"_cnpm_publish_time":1463439579546,"_hasShrinkwrap":false},"1.0.0":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"A lightweight module to help build a git-like command interface for your app.","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"index","keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.3","command-line-args":"^2.1.6","feature-detect-es6":"^1.2.0"},"devDependencies":{"babel-preset-es2015":"^6.6.0","command-line-usage":"^3.0.0","jsdoc-to-markdown":"^1.3.6","tape":"^4.5.1"},"standard":{"ignore":["es5"]},"gitHead":"45adf98cfa7022ac109c5c0ebf822938def50ad4","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@1.0.0","_shasum":"25fc4fd5df200a9c82f89a28f7915b0022a24cfe","_from":".","_npmVersion":"3.9.1","_nodeVersion":"6.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"25fc4fd5df200a9c82f89a28f7915b0022a24cfe","size":5043,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/command-line-commands-1.0.0.tgz_1463438247670_0.6278405268676579"},"directories":{},"publish_time":1463438250339,"_cnpm_publish_time":1463438250339,"_hasShrinkwrap":false},"0.1.2":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.2","description":"Add a git-like command interface to your app","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"index","bin":{"command-line-commands":"bin/cli.js"},"keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.2","command-line-args":"^2.1.4","core-js":"^2.0.2","feature-detect-es6":"^1.2.0"},"devDependencies":{"babel-preset-es2015":"^6.3.13","jsdoc-to-markdown":"^1.3.3","tape":"^4.4.0"},"standard":{"ignore":["es5"]},"gitHead":"9053f5dc7995fd17ee5f2a029da1f4cbedbdd2a4","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@0.1.2","_shasum":"3fd1ac8db5cebfdc6c0910993673b55876b000bc","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"3fd1ac8db5cebfdc6c0910993673b55876b000bc","size":3915,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-0.1.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1452336741592,"_cnpm_publish_time":1452336741592,"_hasShrinkwrap":false},"0.1.1":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.1","description":"command-line-commands","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"index","bin":{"command-line-commands":"bin/cli.js"},"keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.2","command-line-args":"^2.1.1","core-js":"^1.2.6","feature-detect-es6":"^1.1.0"},"devDependencies":{"babel":"^5.8.34","jsdoc-to-markdown":"^1.2.1","tape":"^4.2.2"},"standard":{"ignore":["es5"]},"gitHead":"822944e7b00e40f1631977a9d48fded2bb091699","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@0.1.1","_shasum":"02c7a44c3e37a4853e303ef4cb39fdbe7b037f32","_from":".","_npmVersion":"3.5.1","_nodeVersion":"5.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"02c7a44c3e37a4853e303ef4cb39fdbe7b037f32","size":3885,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-0.1.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1448712064139,"_cnpm_publish_time":1448712064139,"_hasShrinkwrap":false},"0.1.0":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"command-line-commands","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"index","bin":{"command-line-commands":"bin/cli.js"},"keywords":["argv","parse","argument","args","option","parser","parsing","cli","command","commands","line"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --no-comments lib --out-dir es5"},"dependencies":{"array-back":"^1.0.2","command-line-args":"^2.1.1","core-js":"^1.2.6","feature-detect-es6":"^1.1.0"},"devDependencies":{"babel":"^5.8.34","jsdoc-to-markdown":"^1.2.1","tape":"^4.2.2"},"standard":{"ignore":["es5"]},"gitHead":"32c2a967a83b3b2b14aef5c11566a8425555b323","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@0.1.0","_shasum":"726911f56932ffc8a660dfee00738b404ba039be","_from":".","_npmVersion":"3.5.1","_nodeVersion":"5.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"726911f56932ffc8a660dfee00738b404ba039be","size":3719,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-0.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1448709816071,"_cnpm_publish_time":1448709816071,"_hasShrinkwrap":false},"0.0.0":{"name":"command-line-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.0.0","description":"command-line-commands","repository":{"type":"git","url":"git+https://github.com/75lb/command-line-commands.git"},"license":"MIT","main":"./lib/command-line-commands.js","bin":{"command-line-commands":"bin/cli.js"},"keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"command-line-args":"^2.1.1"},"gitHead":"de83eaddcd9eaf8b5e83811854f28d51e3956423","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"homepage":"https://github.com/75lb/command-line-commands#readme","_id":"command-line-commands@0.0.0","_shasum":"2eb4092f4e3f6d2d69b743c8de90a0dadec8fe3c","_from":".","_npmVersion":"3.5.0","_nodeVersion":"5.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"2eb4092f4e3f6d2d69b743c8de90a0dadec8fe3c","size":1960,"noattachment":false,"key":"/command-line-commands/-/command-line-commands-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-line-commands/download/command-line-commands-0.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1448649778977,"_cnpm_publish_time":1448649778977,"_hasShrinkwrap":false}},"readme":"[![view on npm](http://img.shields.io/npm/v/command-line-commands.svg)](https://www.npmjs.org/package/command-line-commands)\n[![npm module downloads](http://img.shields.io/npm/dt/command-line-commands.svg)](https://www.npmjs.org/package/command-line-commands)\n[![Build Status](https://travis-ci.org/75lb/command-line-commands.svg?branch=master)](https://travis-ci.org/75lb/command-line-commands)\n[![Coverage Status](https://coveralls.io/repos/github/75lb/command-line-commands/badge.svg?branch=master)](https://coveralls.io/github/75lb/command-line-commands?branch=master)\n[![Dependency Status](https://badgen.net/david/dep/75lb/command-line-commands)](https://david-dm.org/75lb/command-line-commands)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# command-line-commands\nA lightweight module to help build a git-like command interface for your app.\n\nIts job is to extract the command (the first argument, unless it's an option), check it's valid and either return it or throw. From there, you can parse the remaining args using your preferred option parser (e.g. [command-line-args](https://github.com/75lb/command-line-args), [minimist](https://github.com/substack/minimist) etc.).\n\n## Synopsis\n\nCreate a list of valid commands (`null` represents \"no command\"). Supply it to `commandLineCommands()`, receiving back an object with two properties: `command` (the supplied command) and `argv` (the remainder of the command line args):\n```js\nconst commandLineCommands = require('command-line-commands')\n\nconst validCommands = [ null, 'clean', 'update', 'install' ]\nconst { command, argv } = commandLineCommands(validCommands)\n\n/* print the command and remaining command-line args */\nconsole.log('command: %s', command)\nconsole.log('argv:    %s', JSON.stringify(argv))\n```\n\nWe'll assume the above script is installed as `example`. Since the `validCommands` list includes `null`, running it without a command is valid:\n```\n$ example\ncommand: null\nargv:    []\n```\n\nRunning `example` with no command and one option:\n```\n$ example --verbose\ncommand: null\nargv:    [\"--verbose\"]\n```\n\nRunning `example` with both a command and an option:\n```\n$ example install --save something\ncommand: install\nargv:    [\"--save\",\"something\"]\n```\n\nRunning `example` without a valid command will cause `commandLineCommands()` to throw.\n\nFrom here, you can make a decision how to proceed based on the `command` and `argv` received. For example, if no command (`null`) was passed, you could parse the remaining `argv` for general options (in this case using [command-line-args](https://github.com/75lb/command-line-args)):\n\n```js\nif (command === null) {\n  const commandLineArgs = require('command-line-args')\n  const optionDefinitions = [\n    { name: 'version', type: Boolean }\n  ]\n\n  // pass in the `argv` returned by `commandLineCommands()`\n  const options = commandLineArgs(optionDefinitions, { argv })\n\n  if (options.version) {\n    console.log('version 1.0.1')\n  }\n}\n```\n\nThe same example, using [minimist](https://github.com/substack/minimist):\n\n```js\nif (command === null) {\n  const minimist = require('minimist')\n\n  // pass in the `argv` returned by `commandLineCommands()``\n  const options = minimist(argv)\n\n  if (options.version) {\n    console.log('version 1.0.1')\n  }\n}\n```\n\n## More examples\n\nBoth examples use [command-line-args](https://github.com/75lb/command-line-args) for option-parsing.\n\n- [Simple](https://github.com/75lb/command-line-commands/blob/master/example/simple.js): A basic app with a couple of commands.\n- [Advanced](https://github.com/75lb/command-line-commands/blob/master/example/advanced/git.js): A more complete example, implementing part of the git command interface.\n\n## Usage guides\n\nUsage guides can be generated by [command-line-usage](https://github.com/75lb/command-line-usage). Here is a simple example ([code](https://github.com/75lb/command-line-commands/blob/master/example/usage.js)):\n\n![usage](https://raw.githubusercontent.com/75lb/command-line-commands/master/example/screens/command-list.png)\n\n# API Reference\n**Example**  \n```js\nconst commandLineCommands = require('command-line-commands')\n```\n<a name=\"exp_module_command-line-commands--commandLineCommands\"></a>\n\n### commandLineCommands(commands, [argv]) ⇒ <code>Object</code> ⏏\nParses the `argv` value supplied (or `process.argv` by default), extracting and returning the `command` and remainder of `argv`. The command will be the first value in the `argv` array unless it is an option (e.g. `--help`).\n\n**Kind**: Exported function  \n**Throws**:\n\n- `INVALID_COMMAND` - user supplied a command not specified in `commands`.\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| commands | <code>string</code> \\| <code>Array.&lt;string&gt;</code> | One or more command strings, one of which the user must supply. Include `null` to represent \"no command\" (effectively making a command optional). |\n| [argv] | <code>Array.&lt;string&gt;</code> | An argv array, defaults to the global `process.argv` if not supplied. |\n\n\n* * *\n\n&copy; 2015-21 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/command-line-commands#readme","bugs":{"url":"https://github.com/75lb/command-line-commands/issues"},"license":"MIT"}