{"name":"@oclif/parser","description":"arg and flag parser for oclif","version":"3.6.2","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.2","@oclif/tslint":"^3.1.0","@types/chai":"^4.1.6","@types/mocha":"^5.2.5","@types/nock":"^9.3.0","@types/node":"^10.11.7","@types/node-notifier":"^0.0.28","@types/read-pkg":"^3.0.0","chai":"^4.2.0","eslint":"^5.7.0","eslint-config-oclif":"^3.1.0","mocha":"^5.2.0","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.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":"af0000643c5d954ac71a2b6b4951d79e3bbe609e","_id":"@oclif/parser@3.6.2","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"rasphilco","email":"philipe@heroku.com"},"dist":{"integrity":"sha512-ouSIAPcSOXGy6lpQQnmnxf19HLStVRBpLPhpGdQKKfNGBvlcVoJnOGigY2pCZ7gKYwvjq1ZB4zh/wFKvuvVAmQ==","shasum":"f72164ef951bb7f77dbf552cd7a0616245868ef9","tarball":"http://registry-npm.ywwl.com/@oclif/parser/download/@oclif/parser-3.6.2.tgz","fileCount":28,"unpackedSize":41493,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwWgyCRA9TVsSAnZWagAAlAkP/i1i3+8z8Huf6WnNF2qs\nJ4hTmUxf+HVIcrNLKNwPlwkbzvkG/z6UGIYaJKRa3hddvocHGd6hj8H0/G3a\n4nXaNm8YmPVwm2wwKAPwQVud4HV0tolWBhFsNpGS3lxyH4XDBOvk4XjjY9wq\nI55IJfl1RyLnURMWSP/tiPAoh+fh83sISWdhr4hQ0IEbldcH+PkStJH0OEbd\n5syI9YiAE6yjMRzrNu7hZYwglYUhLRXibnxF9BGfT1wj/h/WAmyfiXxzyQI/\nCjc/vCLR0l5ul8ivT04iXgWoynTLhSkkdEZUqOT+2YbycS0SXPGsRRCHpo5w\nSpJMp8uEe8iBTFpbeh7zboNWYFyV5QdJu6QJxT9FHZW9cKvAU/jJybzptblT\nDoVSH24ZCp5tVL2ZnfQLrUgxT3cLficI1QvT8gN3UEwVtCsx+l6VvuLKNyFC\nLShFwcgoqxAqeBKBihZvzlIL/7RwE/Q7JFLba3T8BGPzJHLyS7hfmFJjVl7C\nHz9Ny7DpRUiYwSiVyLdNMVHAyC4qcvC1IdPh0E6MEpo9SQySZG4fa/acgG3R\nCawlKXJ9ABp4u7YQlUL+uGVX6znTW36k2jngAdy9Hrw7354tSvZIK/Pd+dMB\nIgw5ihfMk3+tWBVWz2LcSf9ntN/bCg/gg5nf1XduxrjeSAVgkK2I2csazlkf\nRdPD\r\n=1dof\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjbGNfldUbtoWBCwfWR5Q+g3xX/HgYe8VOqaK5f6zTzQIgd13HyF0lSqsm76ErAdjPB9+KNttvKbIAv3SFjETSFjQ="}],"size":11812,"noattachment":false,"key":"/@oclif/parser/-/@oclif/parser-3.6.2.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.2_1539401777351_0.9680087083929487"},"_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":1539401777507,"_cnpm_publish_time":1539401777507,"dist-tags":{"latest":"3.8.17"}}