{"_id":"cli-commands","_rev":"335037","name":"cli-commands","description":"A convention for building command-driven CLI apps","dist-tags":{"latest":"0.4.0"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-08T13:16:06.000Z","created":"2016-10-23T10:29:54.853Z","0.4.0":"2018-04-11T10:08:38.103Z","0.3.3":"2018-01-15T23:21:35.698Z","0.3.2":"2017-06-10T21:25:40.490Z","0.3.1":"2017-06-06T20:01:19.915Z","0.3.0":"2017-06-06T19:56:44.059Z","0.2.1":"2017-03-06T10:12:52.470Z","0.2.0":"2017-01-16T21:54:26.700Z","0.1.0":"2016-10-23T18:19:58.563Z","0.0.1":"2016-10-23T11:50:43.261Z","0.0.0":"2016-10-23T10:29:54.853Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"versions":{"0.4.0":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.4.0","description":"A convention for building command-driven CLI apps","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","keywords":["command-line-commands","command-line","command","commands","argv","parse","option","parser"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo"},"dependencies":{"command-line-args":"^5.0.2","command-line-commands":"^2.0.1"},"devDependencies":{"jsdoc-to-markdown":"^4.0.1","test-runner":"^0.5.0"},"gitHead":"02a9915ce2b78a8542f536f953c7954c05e9d457","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.4.0","_npmVersion":"5.8.0","_nodeVersion":"9.11.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"75b79bba16733267b71c60def2dd76f3a07cda8a","size":2637,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.4.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-commands_0.4.0_1523441318021_0.6512320203926283"},"_hasShrinkwrap":false,"publish_time":1523441318103,"_cnpm_publish_time":1523441318103},"0.3.3":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.3","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","keywords":["command-line-commands","command-line","command","commands","argv","parse","option","parser"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo"},"dependencies":{"command-line-args":"^4.0.7","command-line-commands":"^2.0.1"},"devDependencies":{"jsdoc-to-markdown":"^3.0.4","test-runner":"^0.4.1"},"gitHead":"01b7cbe0a9788870dcee99036e6f77df3cddc4ff","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.3.3","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"64cbd85438e7ef2a746f71932dcb609695aefd78","size":2661,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.3.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-commands-0.3.3.tgz_1516058494713_0.25754091423004866"},"directories":{},"publish_time":1516058495698,"_hasShrinkwrap":false,"_cnpm_publish_time":1516058495698},"0.3.2":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.2","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","keywords":["command-line-commands","command-line","command","commands","argv","parse","option","parser"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs cli-commands.js > README.md; echo"},"dependencies":{"command-line-args":"^4.0.6","command-line-commands":"^2.0.0"},"devDependencies":{"jsdoc-to-markdown":"^3.0.0","test-runner":"^0.3.0"},"gitHead":"a7c3f974bf347fd633fe68c34ee1362fe0c4118e","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.3.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"72868f2867c3d983aa75b415d2be79f8fb337590","size":2829,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.3.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-commands-0.3.2.tgz_1497129939449_0.10910037928260863"},"directories":{},"publish_time":1497129940490,"_cnpm_publish_time":1497129940490,"_hasShrinkwrap":false},"0.3.1":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.1","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","keywords":["command-line-commands","command-line","command","commands","argv","parse","option","parser"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs cli-commands.js > README.md; echo"},"dependencies":{"command-line-args":"^4.0.6","command-line-commands":"^2.0.0"},"devDependencies":{"jsdoc-to-markdown":"^3.0.0","test-runner":"^0.3.0"},"gitHead":"fa20ced00b498e66f83d058b8225b64d61f0510a","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.3.1","_npmVersion":"5.0.3","_nodeVersion":"8.0.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"e40cbb1c69fd8229b7ac78ae4976d896e6571c2d","size":2689,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.3.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-commands-0.3.1.tgz_1496779279042_0.26839571562595665"},"directories":{},"publish_time":1496779279915,"_hasShrinkwrap":false,"_cnpm_publish_time":1496779279915},"0.3.0":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.0","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","main":"cli-commands.js","keywords":["command-line-commands","command-line","command","commands","argv","parse","option","parser"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs cli-commands.js > README.md; echo"},"dependencies":{"command-line-args":"^4.0.6","command-line-commands":"^2.0.0"},"devDependencies":{"jsdoc-to-markdown":"^3.0.0","test-runner":"^0.3.0"},"gitHead":"da7900dd991b906327b4a0339bf42f95df091517","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.3.0","_npmVersion":"5.0.2","_nodeVersion":"8.0.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"fb92e5a286fe9cf3c86d4eb558e6f5a54ecaef46","size":2686,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.3.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-commands-0.3.0.tgz_1496779003119_0.2290594121441245"},"directories":{},"publish_time":1496779004059,"_cnpm_publish_time":1496779004059,"_hasShrinkwrap":false},"0.2.1":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.1","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","main":"./lib/cli-commands.js","keywords":[],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"ansi-escape-sequences":"^3.0.0","command-line-args":"^3.0.5","command-line-commands":"^2.0.0","command-line-usage":"^4.0.0"},"gitHead":"c86dbabf8954ca43156e1f7279e06c8536092cf0","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.2.1","_shasum":"70f5a38c6661635b611577f674e6d0d0d8d0356b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"70f5a38c6661635b611577f674e6d0d0d8d0356b","size":2626,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.2.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cli-commands-0.2.1.tgz_1488795170576_0.6592849376611412"},"directories":{},"publish_time":1488795172470,"_cnpm_publish_time":1488795172470,"_hasShrinkwrap":false},"0.2.0":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.0","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","main":"./lib/cli-commands.js","keywords":[],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"ansi-escape-sequences":"^3.0.0","command-line-args":"^3.0.5","command-line-commands":"^2.0.0","command-line-usage":"^4.0.0"},"gitHead":"fd433ee559fd0e4e954141adaf283762998accdd","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.2.0","_shasum":"a6f6f82a6b8bb0565b45b8bccaff9d447004e9e5","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"a6f6f82a6b8bb0565b45b8bccaff9d447004e9e5","size":2591,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.2.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cli-commands-0.2.0.tgz_1484603666137_0.7029869297984987"},"directories":{},"publish_time":1484603666700,"_cnpm_publish_time":1484603666700,"_hasShrinkwrap":false},"0.1.0":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","main":"./lib/cli-commands.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"ansi-escape-sequences":"^3.0.0","command-line-args":"^3.0.1","command-line-commands":"^1.0.4","command-line-usage":"^3.0.5"},"gitHead":"23ed41e859a7a90b3b5ddf57a82f73b8065a0de0","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.1.0","_shasum":"c57cacc406bbcf9ee21646607161ed432ef5a05a","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"c57cacc406bbcf9ee21646607161ed432ef5a05a","size":2714,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cli-commands-0.1.0.tgz_1477246796626_0.03085306636057794"},"directories":{},"publish_time":1477246798563,"_cnpm_publish_time":1477246798563,"_hasShrinkwrap":false},"0.0.1":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.0.1","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","main":"./lib/cli-commands.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"ansi-escape-sequences":"^3.0.0","command-line-args":"^3.0.1","command-line-commands":"^1.0.4","command-line-usage":"^3.0.5"},"gitHead":"411dd4ea6eaa217cbc72efd3561a74e836763359","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.0.1","_shasum":"960d7af75cc531db9b759fd1605cefad2ca8826b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"960d7af75cc531db9b759fd1605cefad2ca8826b","size":2278,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cli-commands-0.0.1.tgz_1477223441263_0.9326091911643744"},"directories":{},"publish_time":1477223443261,"_cnpm_publish_time":1477223443261,"_hasShrinkwrap":false},"0.0.0":{"name":"cli-commands","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.0.0","description":"cli-commands","repository":{"type":"git","url":"git+https://github.com/75lb/cli-commands.git"},"license":"MIT","main":"./lib/cli-commands.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"command-line-args":"^3.0.1","command-line-commands":"^1.0.4","command-line-usage":"^3.0.5"},"gitHead":"ea8a0fff0a98b8781b1528b9453e29aa0b369074","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"homepage":"https://github.com/75lb/cli-commands#readme","_id":"cli-commands@0.0.0","_shasum":"25d9527e646021ac9027d36a902c4061afa27d7b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"25d9527e646021ac9027d36a902c4061afa27d7b","size":2082,"noattachment":false,"key":"/cli-commands/-/cli-commands-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-commands/download/cli-commands-0.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cli-commands-0.0.0.tgz_1477218593121_0.26859190966933966"},"directories":{},"publish_time":1477218594853,"_cnpm_publish_time":1477218594853,"_hasShrinkwrap":false}},"readme":"[![view on npm](https://img.shields.io/npm/v/cli-commands.svg)](https://www.npmjs.org/package/cli-commands)\n[![npm module downloads](https://img.shields.io/npm/dt/cli-commands.svg)](https://www.npmjs.org/package/cli-commands)\n[![Build Status](https://travis-ci.org/75lb/cli-commands.svg?branch=master)](https://travis-ci.org/75lb/cli-commands)\n[![Dependency Status](https://david-dm.org/75lb/cli-commands.svg)](https://david-dm.org/75lb/cli-commands)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# cli-commands\n\nA convention for building command-driven CLI apps.\n\n## Synopsis\n\n```js\nconst CliCommands = require('cli-commands')\n\nconst validCommands = [\n  { name: null },\n  { name: 'show', command: require('./command/show').create() },\n  { name: 'serve', command: require('./command/serve').create() },\n  { name: 'help', command: require('./command/help').create() }\n]\n\nconst cliCommands = new CliCommands(validCommands)\n```\n\nWhere each command looks something like this:\n\n```js\nclass ShowCommand {\n  optionDefinitions () {\n    /* command has a --help option */\n    return [\n      { name: 'help', type: Boolean, alias: 'h' }\n    ]\n  }\n  description () { return 'Print some information.' }\n  usage () {\n    return [\n      { header: 'Options', optionList: this.optionDefinitions() }\n    ]\n  }\n  cliView (data) {\n    return JSON.stringify(data, null, '  ')\n  }\n  execute (options) {\n    // do something sync or async\n  }\n  static create () {\n    return new this(...arguments)\n  }\n}\n```\n\n# API Reference\n\n<a name=\"module_cli-commands\"></a>\n\n## cli-commands\n<a name=\"exp_module_cli-commands--Commands\"></a>\n\n### Commands ⏏\n**Kind**: Exported class  \n\n* * *\n\n&copy; 2016-18 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/cli-commands#readme","bugs":{"url":"https://github.com/75lb/cli-commands/issues"},"license":"MIT"}