{"name":"@oclif/parser","description":"arg and flag parser for oclif","version":"3.3.3","author":{"name":"Jeff Dickey @jdxcode"},"bugs":{"url":"https://github.com/oclif/parser/issues"},"dependencies":{"@oclif/linewrap":"^1.0.0","chalk":"^2.4.0"},"devDependencies":{"@oclif/errors":"^1.0.4","@oclif/tslint":"^1.1.0","@types/chai":"^4.1.2","@types/mocha":"^5.0.0","@types/nock":"^9.1.3","@types/node":"^9.6.5","@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.0","ts-node":"^6.0.0","tslint":"^5.9.1","typescript":"^2.8.1"},"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":"e31965f8c104c2858b73fa673d148f6638fc657c","_id":"@oclif/parser@3.3.3","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"oclif-bot","email":"jdxcode+oclif@gmail.com"},"dist":{"integrity":"sha512-EpFH340Kg+zUndVuo6WoJBec1iNscpSUV53jGnLq94UqySp0SQXtHkvP1ZUMVUatvaOBIOtC5Y6EKOGHQtfCGg==","shasum":"bfde499b836178eee2b6b29ccb7fb3f95851d3c6","tarball":"http://registry-npm.ywwl.com/@oclif/parser/download/@oclif/parser-3.3.3.tgz","fileCount":28,"unpackedSize":38648,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1r9nCRA9TVsSAnZWagAAbdEQAJYeeiLd7bR0AONu5sxA\n76rOStobaSS+g27VAK8nN+SM1y1bchTRKBAfQtsMdOYi9UrUH3C90TZQTWfq\nkJ/jPFctYl3UVsHmpREj7GdQWQi2aCJSgl7aoMrriGMJ9FspZZe8qMEh0JYZ\nxog4PZhZTzAo4rZxyHWU0Gm0h7KeZca9XMdRzBzQgIDo2FA81Z3yFQ2Q+Ugk\np/RWKaaRY4AvdLyh+VIYwZhzx3w+1RHsdtxsT7EXJnlYKXUqyuntLNcAZCIZ\nfppE8VRCJDjFj7W5QiP1vhsgZLCPWZeIZY44OwzqzmRuJ9+uY9ZLDL708i35\ndtflstwdjIOo4i3OeIHPo7t+fPDONxuNUUbM7r15wxCnWw5XiHH4j92MLqLp\nxTaprL75LTcRUZIUCCxo2nr/n/JOvNC7cqsy8DSmOeYjkH15Smf/S5ooTmev\nUYQ49Tor+iGXf+HbC9VvWRL3M74iTqnF6AgvezSC8F/bT2KYaX4r3PXiY4ki\noh1hQfOwZxesM5WppXsPwUqZLMumOJwm58DVIEplt12QrKqPxzqNguH/doxP\nL+ZnKaEOeo/SURh6khDkMTVvGuctMYks/XY6n0uv93Sl231JvxkslKDjy69a\neA3c+lVuhaqMMibRiMOAYrYCC0CNRvrf8n0FZkBaaE+4zwwWkoUtRCjndYR/\nEaJt\r\n=GuNU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVrSlYgZCXYimL9felwrEF6h+acxgqYmgKmQYVSIHrNwIhAIP3GULDu/9/tmF2v4AJyT9epQsU66rPg5UOJTG1nObe"}],"size":11239,"noattachment":false,"key":"/@oclif/parser/-/@oclif/parser-3.3.3.tgz"},"maintainers":[{"name":"dickeyxxx","email":"dickeytk+npm@gmail.com"},{"name":"oclif-bot","email":"jdxcode+oclif@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parser_3.3.3_1524023142528_0.040910717409949005"},"_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":1524023142688,"_cnpm_publish_time":1524023142688,"dist-tags":{"latest":"3.8.17"}}