{"name":"@oclif/parser","description":"arg and flag parser for oclif","version":"3.6.1","author":{"name":"Jeff Dickey @jdxcode"},"bugs":{"url":"https://github.com/oclif/parser/issues"},"dependencies":{"@oclif/linewrap":"^1.0.0","chalk":"^2.4.1","tslib":"^1.9.3"},"devDependencies":{"@oclif/errors":"^1.2.0","@oclif/tslint":"^2.0.0","@types/chai":"^4.1.4","@types/mocha":"^5.2.5","@types/nock":"^9.3.0","@types/node":"^10.9.4","@types/node-notifier":"^0.0.28","@types/read-pkg":"^3.0.0","chai":"^4.1.2","eslint":"^5.4.0","eslint-config-oclif":"^3.0.0","mocha":"^5.2.0","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.0.3"},"engines":{"node":">=8.0.0"},"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 && 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":"8e0c908ed89d710a155e652c2b247a30e18493c6","_id":"@oclif/parser@3.6.1","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"rasphilco","email":"philipe@heroku.com"},"dist":{"integrity":"sha512-H5gyGM3GaDFr1SHt7gsHfMEmt0/Q5SQYOqmtBlpofYaqiof8wdHZQAj4KY2oJpcy4tnsRJrFM3fN3GNEARBgtg==","shasum":"dd0ad29d9178d75a2de30314874a6167675925ed","tarball":"http://registry-npm.ywwl.com/@oclif/parser/download/@oclif/parser-3.6.1.tgz","fileCount":28,"unpackedSize":41396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbidOVCRA9TVsSAnZWagAACCkP/AqDPrQlYQji1sT++9O5\ntMEd+B39YFdLu/qgif1/WVdLx496VN1Yydq1iW9l6ZCJslQPNlpMJa9pH9Xc\nYXaT3CS6CiVBPB/7La2ZFRHlEHU1+lG+ewEaJkCAOesq3EQtgVaD8/OSKR8W\nE7tn0m9ME1zpCru7Ah0VzalMUnojWk4HaZLTavBCoVvC9/T3W0NP+0LsFmKE\nUK0xRjJrVDs607HziEtdd83iWb3Su2HylzEL+Ra8Oe0ClOj5ramd4cc89WVV\n3W0WeB7R9AZvrQzg5qKVx9eY/p/aBKnHi9bmEgb+BHhYtB3mf3Yww8GuvpVG\n+6rE1OAiK0ScMdr7/aWX5+VJT0K/VkU86sHsD8rCYLA7toHfkhF0WvIDlJri\nhQNtQ8d59iO79R6VlnRV8jrwzXxJXGT8hHyQJvE6OrNPwFz1exzWRLkcedv0\naVC47a7WNTv2H0qq2NYtCWSIMlQgZldT8sScVYHhJkzLQF6FxvFMpZ44NDSA\nsTQOAK/oNgXHLiTPpvOeNLjaKDTcF1c+blN0idmd1xbULX1h6mB7xC4Zl3Oj\n8yKURItbYjsl452y8BSoc0VN8oV2/Xue82/azZnSJCokX5DKH/uSUjFM1NQs\nxjYoS/ZJmVH+N/fyYHPMEgro6jdnlB8qhcbKI0xOiUs+mZMJwYqBtaNWJuuj\nqRMX\r\n=wMm6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTl4vovjyJTwjkqawXD/Qn87UVQyqJWi4CUN5FCsh1VgIgMtSeGED/5ZJa32X5gdiAbi2Bgi4u2SI7+kvIST3/rdM="}],"size":11799,"noattachment":false,"key":"/@oclif/parser/-/@oclif/parser-3.6.1.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.6.1_1535759252369_0.1671117390592356"},"_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":1535759252552,"_cnpm_publish_time":1535759252552,"dist-tags":{"latest":"3.8.17"}}