{ "_args": [ [ { "raw": "commander@^2.9.0", "scope": null, "escapedName": "commander", "name": "commander", "rawSpec": "^2.9.0", "spec": ">=2.9.0 <3.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/analytics-node" ] ], "_from": "commander@>=2.9.0 <3.0.0", "_id": "commander@2.14.1", "_inCache": true, "_location": "/commander", "_nodeVersion": "9.4.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/commander_2.14.1_1517989378540_0.7122613806538618" }, "_npmUser": { "name": "abetomo", "email": "abe@enzou.tokyo" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "commander@^2.9.0", "scope": null, "escapedName": "commander", "name": "commander", "rawSpec": "^2.9.0", "spec": ">=2.9.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/analytics-node" ], "_resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz", "_shasum": "2235123e37af8ca3c65df45b026dbd357b01b9aa", "_shrinkwrap": null, "_spec": "commander@^2.9.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/analytics-node", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "bugs": { "url": "https://github.com/tj/commander.js/issues" }, "dependencies": {}, "description": "the complete solution for node.js command-line programs", "devDependencies": { "@types/node": "^7.0.52", "eslint": "^3.19.0", "should": "^11.2.1", "sinon": "^2.4.1", "standard": "^10.0.3", "typescript": "^2.7.1" }, "directories": {}, "dist": { "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw==", "shasum": "2235123e37af8ca3c65df45b026dbd357b01b9aa", "tarball": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz", "fileCount": 6, "unpackedSize": 58015 }, "files": [ "index.js", "typings/index.d.ts" ], "gitHead": "6b026a5c88a2c7f67db70831c015e9d11c7babca", "homepage": "https://github.com/tj/commander.js#readme", "keywords": [ "commander", "command", "option", "parser" ], "license": "MIT", "main": "index", "maintainers": [ { "name": "abetomo", "email": "abe@enzou.tokyo" }, { "name": "somekittens", "email": "rkoutnik@gmail.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "vanesyan", "email": "romain.vanesyan@gmail.com" }, { "name": "zhiyelee", "email": "zhiyelee@gmail.com" } ], "name": "commander", "optionalDependencies": {}, "readme": "# Commander.js\n\n\n[![Build Status](https://api.travis-ci.org/tj/commander.js.svg?branch=master)](http://travis-ci.org/tj/commander.js)\n[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander)\n[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://www.npmjs.org/package/commander)\n[![Join the chat at https://gitter.im/tj/commander.js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tj/commander.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n The complete solution for [node.js](http://nodejs.org) command-line interfaces, inspired by Ruby's [commander](https://github.com/commander-rb/commander). \n [API documentation](http://tj.github.com/commander.js/)\n\n\n## Installation\n\n $ npm install commander --save\n\n## Option parsing\n\nOptions with commander are defined with the `.option()` method, also serving as documentation for the options. The example below parses args and options from `process.argv`, leaving remaining args as the `program.args` array which were not consumed by options.\n\n```js\n#!/usr/bin/env node\n\n/**\n * Module dependencies.\n */\n\nvar program = require('commander');\n\nprogram\n .version('0.1.0')\n .option('-p, --peppers', 'Add peppers')\n .option('-P, --pineapple', 'Add pineapple')\n .option('-b, --bbq-sauce', 'Add bbq sauce')\n .option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble')\n .parse(process.argv);\n\nconsole.log('you ordered a pizza with:');\nif (program.peppers) console.log(' - peppers');\nif (program.pineapple) console.log(' - pineapple');\nif (program.bbqSauce) console.log(' - bbq');\nconsole.log(' - %s cheese', program.cheese);\n```\n\nShort flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as \"--template-engine\" are camel-cased, becoming `program.templateEngine` etc.\n\nNote that multi-word options starting with `--no` prefix negate the boolean value of the following word. For example, `--no-sauce` sets the value of `program.sauce` to false. \n\n```js\n#!/usr/bin/env node\n\n/**\n * Module dependencies.\n */\n\nvar program = require('commander');\n\nprogram\n .option('--no-sauce', 'Remove sauce')\n .parse(process.argv);\n\nconsole.log('you ordered a pizza');\nif (program.sauce) console.log(' with sauce');\nelse console.log(' without sauce');\n```\n\n## Version option\n\nCalling the `version` implicitly adds the `-V` and `--version` options to the command.\nWhen either of these options is present, the command prints the version number and exits.\n\n $ ./examples/pizza -V\n 0.0.1\n\nIf you want your program to respond to the `-v` option instead of the `-V` option, simply pass custom flags to the `version` method using the same syntax as the `option` method.\n\n```js\nprogram\n .version('0.0.1', '-v, --version')\n```\n\nThe version flags can be named anything, but the long option is required.\n\n## Command-specific options\n\nYou can attach options to a command.\n\n```js\n#!/usr/bin/env node\n\nvar program = require('commander');\n\nprogram\n .command('rm