{"name":"@oclif/parser","description":"arg and flag parser for oclif","version":"3.5.2","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.1.2","@oclif/tslint":"^1.1.2","@types/chai":"^4.1.3","@types/mocha":"^5.2.0","@types/nock":"^9.1.3","@types/node":"^10.1.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.5.1","mocha":"^5.2.0","ts-node":"^6.0.5","tslint":"^5.10.0","typescript":"^2.9.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":"044b8ce9594d4348052d7f28b227cad30c8601be","_id":"@oclif/parser@3.5.2","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"oclif-bot","email":"jdxcode+oclif@gmail.com"},"dist":{"integrity":"sha512-WLn0dTTYNevTCAitaqg4Xq11yhUqkUfV9bOgX1kgD2U/Hit7szztCxgMJxB+anR8PS/Ck0+YFnaiUrns5hecRg==","shasum":"541bd783463ea0b3717836a12de36cf2a73297de","tarball":"http://registry-npm.ywwl.com/@oclif/parser/download/@oclif/parser-3.5.2.tgz","fileCount":28,"unpackedSize":40830,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJAVNCRA9TVsSAnZWagAAXtYP/j70ShpFtOOfk0itxW1r\nwxLpzNjxu8XpNZCfnk/mlQOTdXOYvH7GAIpGyU9jypL4j0gdUn858/Qh7B6L\n9+lWENLDI2y7DrgGq3+PDZ7x5WF1oC7jwKanqLBvIWVG8DYNY3jsKE0Qpn0L\npTASrVpZGVZ4eiZjwUSgSWIdYhdQDteRcd+I5u6GDNslI4e+MJhDmkXqCT8E\n9Zqv6sETnrtKG5GX3ncbXZCFuFowjCDpDS2nIYeEJ7Cfj6ketpfN74o3jg95\nDtfog7n6jc18ErqQPqBUkWlvBBLKsX0BrMD7GQfZCCDp4NGUbIKsneO6Cpz5\nB9AgyqkbXoC1lqDLxKEXkLQqum6f9/LBhwM8udTOuRLmHZRI0Lwb6BlVvnXn\nby8ZBKxqXeNPmTu2vLIuitpHMB7iPYOkGZb28tHEJHJzSnAqythK6pzt7QcM\nM0QmkiORBAgL9QL2B9RUFQ5wS5/t7hXGv5FmlofumLszJ/yYS46A9ToGd3aK\ntZSP1Pr8UXUW+1sGRGslMw9VWiMswvAWVultEc8xcL53DbaLDdOtagrxFBvM\nx0/BS8gkS8ClueyEOwZaIXuAlWq5/G8Cwe/XoHXaU5ov3kmJMezJbdu/sH0d\nfycoJLxGvGNUDdPOA1tFXH4H5bly0TKikPJSQGTtU7xQuWbNPAhYybPbTKxw\n0Mr1\r\n=Lahn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNH/HanrgC3ZNJGyFfY6Z69hf8cruF4a9J7sczd2E7YAiEA8sz21q6H1Lc75yEY3z8YYeByDDDUw8LGHqkPBvFkwRY="}],"size":11697,"noattachment":false,"key":"/@oclif/parser/-/@oclif/parser-3.5.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.5.2_1529087308255_0.43059787165102636"},"_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":1529087309093,"_cnpm_publish_time":1529087309093,"dist-tags":{"latest":"3.8.17"}}