{"name":"@oclif/parser","description":"arg and flag parser for oclif","version":"3.4.0","author":{"name":"Jeff Dickey @jdxcode"},"bugs":{"url":"https://github.com/oclif/parser/issues"},"dependencies":{"@oclif/linewrap":"^1.0.0","chalk":"^2.4.1"},"devDependencies":{"@oclif/errors":"^1.0.9","@oclif/tslint":"^1.1.1","@types/chai":"^4.1.3","@types/mocha":"^5.2.0","@types/nock":"^9.1.3","@types/node":"^10.0.4","@types/node-notifier":"^0.0.28","@types/read-pkg":"^3.0.0","chai":"^4.1.2","concurrently":"^3.5.1","eslint":"^4.19.1","eslint-config-oclif":"^1.4.0","mocha":"^5.1.1","ts-node":"^6.0.3","tslint":"^5.10.0","typescript":"^2.8.3"},"engines":{"node":">=8.0.0"},"files":["/lib"],"homepage":"https://github.com/oclif/parser","keywords":["oclif"],"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/oclif/parser.git"},"scripts":{"build":"rm -rf lib && tsc","lint":"yarn run build && concurrently -p command \"eslint .\" \"tsc -p test --noEmit\" \"tslint -p test\"","posttest":"yarn run lint","prepublishOnly":"yarn run build","test":"mocha --forbid-only \"test/**/*.test.ts\""},"types":"lib/index.d.ts","gitHead":"a24c135b91d1902ad9d50636444dc2c14d98c25e","_id":"@oclif/parser@3.4.0","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"oclif-bot","email":"jdxcode+oclif@gmail.com"},"dist":{"integrity":"sha512-nsLNnGZbUaLVirQz9BQxNaiWKOl/zEHmnQ1c1vIoAQX+6MLYVJQUtCClfJl6avVGv2h9VrKihUIf2Xdu1kELcg==","shasum":"bf61399c70f75a96070153df2fcbb7e7115c7fd9","tarball":"http://registry-npm.ywwl.com/@oclif/parser/download/@oclif/parser-3.4.0.tgz","fileCount":28,"unpackedSize":39162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa98TKCRA9TVsSAnZWagAAOmoP/2CDyalDjhfsWnYrU+GY\naWvLqEf60IWeXliRkmv0Tn4vABjoE7APRFZ5uxitlYQ4kgD9qlKYXvnhMzQ9\nthIQ+1r5jWPGdBKz0P4AqHYJ/0xJa1eERkF2jdVG8bA72WeMnpGj8IUy0Ki3\nvrLIy++FGDf/Xy9WDb0swNJOO8gBtWQhztMK11eupfp5zB25VdenNTdSREld\n4ZFQR8InhxGBk/zPEsX1M6BqdgZGUV2469dvqifL3NVUHk21ajcggyyio2W5\nQRP7g8eqkPaaGBRIQj5nBKste6O72rfbvLqi4jJQtuSBJiyhzKzvp9yn/Mos\nfF4BUG9W58+g+G4gG4WOds0myRXCqZBwqEQ/yYIiyuO40abBxsueCzAR1epp\nXwFhwqzOwZpzFej+5BVigrnTjJXFJ1eYX8cWnCNmhjMpaGhiuFA+yY7Z0WPC\nnqlxC/5wOP8kUwusNSslSWvmRk9HRvSqB7cw7xq5QloK3RehiQXfXkzipnsR\nFU55DgXE6v1H9zDYO0JvXQ0F31sWHzAoqOtwXjJ1GZFgZd+l9yG7UIUTvTw5\nUpSnuIb5QX9QiznB07CbuSAsxJgikBUJi17arqoNvwxiov6+l7hDgFKR+TGY\n4SK3RCh40/JrZs7DoKBwVmKEOvLtM4qvts/2XFxDRsHsDgqB4SF6v31W5Mrb\nhpK3\r\n=8ACb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPatdcxxYxw4ul4xvLpW6D4FEe7niQMR0R/YoOLCxsSQIgdKJO6dzsDweIKAwr1zqxHFrJQOBnqY42uc28KxJb7xI="}],"size":11351,"noattachment":false,"key":"/@oclif/parser/-/@oclif/parser-3.4.0.tgz"},"maintainers":[{"email":"dickeytk+npm@gmail.com","name":"dickeyxxx"},{"email":"jdxcode+oclif@gmail.com","name":"oclif-bot"},{"email":"philipe@heroku.com","name":"rasphilco"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parser_3.4.0_1526187209095_0.30398142177340204"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","readme":"@oclif/parser\n=============\n\n**This library has been replaced by [@oclif/core](https://github.com/oclif/core) and is now in maintenance mode. We will only consider PRs that address security concerns.**\n\narg and flag parser for oclif\n\n[![Version](https://img.shields.io/npm/v/@oclif/parser.svg)](https://npmjs.org/package/@oclif/parser)\n[![CircleCI](https://circleci.com/gh/oclif/parser/tree/main.svg?style=svg)](https://circleci.com/gh/oclif/parser/tree/main)\n[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/oclif/parser?branch=main&svg=true)](https://ci.appveyor.com/project/heroku/parser/branch/main)\n[![Known Vulnerabilities](https://snyk.io/test/npm/@oclif/parser/badge.svg)](https://snyk.io/test/npm/@oclif/parser)\n[![Downloads/week](https://img.shields.io/npm/dw/@oclif/parser.svg)](https://npmjs.org/package/@oclif/parser)\n[![License](https://img.shields.io/npm/l/@oclif/parser.svg)](https://github.com/oclif/parser/blob/main/package.json)\n\nCLI flag parser.\n\nUsage:\n\n```js\nconst CLI = require('cli-flags')\n\nconst {flags, args} = CLI.parse({\n  flags: {\n    'output-file': CLI.flags.string({char: 'o'}),\n    force: CLI.flags.boolean({char: 'f'})\n  },\n  args: [\n    {name: 'input', required: true}\n  ]\n})\n\nif (flags.force) {\n  console.log('--force was set')\n}\n\nif (flags['output-file']) {\n  console.log(`output file is: ${flags['output-file']}`)\n}\n\nconsole.log(`input arg: ${args.input}`)\n\n// $ node example.js -f myinput --output-file=myexample.txt\n// --force was set\n// output file is: myexample.txt\n// input arg: myinput\n```\n","publish_time":1526187209201,"_cnpm_publish_time":1526187209201,"dist-tags":{"latest":"3.8.17"}}