{"name":"yargs","version":"16.0.0-alpha.2","description":"yargs the modern, pirate-themed, successor to optimist.","main":"./index.cjs","exports":{".":{"import":"./index.mjs","require":"./index.cjs"},"./yargs":{"require":"./build/index.cjs"}},"type":"module","module":"./build/index.mjs","contributors":[{"name":"Yargs Contributors","url":"https://github.com/yargs/yargs/graphs/contributors"}],"dependencies":{"cliui":"^7.0.0","escalade":"^3.0.2","get-caller-file":"^2.0.5","require-directory":"^2.1.1","string-width":"^4.2.0","y18n":"^4.0.0","yargs-parser":"^19.0.1"},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","@types/node":"^14.0.27","@typescript-eslint/eslint-plugin":"^3.0.0","@typescript-eslint/parser":"^3.0.0","@wessberg/rollup-plugin-ts":"^1.3.2","c8":"^7.0.0","chai":"^4.2.0","chalk":"^4.0.0","coveralls":"^3.0.9","cpr":"^3.0.1","cross-env":"^7.0.2","cross-spawn":"^7.0.0","eslint":"^6.8.0","eslint-plugin-import":"^2.20.1","eslint-plugin-node":"^11.0.0","gts":"^2.0.0-alpha.4","hashish":"0.0.4","mocha":"^8.0.0","rimraf":"^3.0.2","rollup":"^2.23.0","rollup-plugin-cleanup":"^3.1.1","standardx":"^5.0.0","typescript":"^3.7.0","which":"^2.0.0","yargs-test-extends":"^1.0.1"},"scripts":{"check":"standardx './*.ts' && standardx '**/*.ts'","fix":"standardx --fix './*.ts'  && standardx --fix '**/*.ts'","posttest":"npm run check","test":"c8 mocha ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks","test:esm":"c8 mocha ./test/esm/*.mjs --check-leaks","coverage":"c8 report --check-coverage","prepare":"npm run compile","pretest":"npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs","compile":"rimraf build && tsc","postcompile":"npm run build:cjs","build:cjs":"rollup -c rollup.config.cjs","postbuild:cjs":"rimraf ./build/index.cjs.d.ts"},"repository":{"type":"git","url":"git+https://github.com/yargs/yargs.git"},"homepage":"https://yargs.js.org/","standardx":{"ignore":["build","index.cjs","yargs.cjs","**/example/**"]},"keywords":["argument","args","option","parser","parsing","cli","command"],"license":"MIT","engines":{"node":">=10"},"readme":"<p align=\"center\">\n  <img width=\"250\" src=\"/yargs-logo.png\">\n</p>\n<h1 align=\"center\"> Yargs </h1>\n<p align=\"center\">\n  <b >Yargs be a node.js library fer hearties tryin' ter parse optstrings</b>\n</p>\n\n<br>\n\n[![Build Status][travis-image]][travis-url]\n[![NPM version][npm-image]][npm-url]\n[![js-standard-style][standard-image]][standard-url]\n[![Coverage][coverage-image]][coverage-url]\n[![Conventional Commits][conventional-commits-image]][conventional-commits-url]\n[![Slack][slack-image]][slack-url]\n\n## Description :\nYargs helps you build interactive command line tools, by parsing arguments and generating an elegant user interface.\n\nIt gives you:\n\n* commands and (grouped) options (`my-program.js serve --port=5000`).\n* a dynamically generated help menu based on your arguments.\n\n> <img width=\"400\" src=\"/screen.png\">\n\n* bash-completion shortcuts for commands and options.\n* and [tons more](/docs/api.md).\n\n## Installation\n\nStable version:\n```bash\nnpm i yargs\n```\n\nBleeding edge version with the most recent features:\n```bash\nnpm i yargs@next\n```\n\n## Usage :\n\n### Simple Example\n\n```javascript\n#!/usr/bin/env node\nconst {argv} = require('yargs')\n\nif (argv.ships > 3 && argv.distance < 53.5) {\n  console.log('Plunder more riffiwobbles!')\n} else {\n  console.log('Retreat from the xupptumblers!')\n}\n```\n\n```bash\n$ ./plunder.js --ships=4 --distance=22\nPlunder more riffiwobbles!\n\n$ ./plunder.js --ships 12 --distance 98.7\nRetreat from the xupptumblers!\n```\n\n### Complex Example\n\n```javascript\n#!/usr/bin/env node\nrequire('yargs') // eslint-disable-line\n  .command('serve [port]', 'start the server', (yargs) => {\n    yargs\n      .positional('port', {\n        describe: 'port to bind on',\n        default: 5000\n      })\n  }, (argv) => {\n    if (argv.verbose) console.info(`start server on :${argv.port}`)\n    serve(argv.port)\n  })\n  .option('verbose', {\n    alias: 'v',\n    type: 'boolean',\n    description: 'Run with verbose logging'\n  })\n  .argv\n```\n\nRun the example above with `--help` to see the help for the application.\n\n## TypeScript\n\nyargs has type definitions at [@types/yargs][type-definitions].\n\n```\nnpm i @types/yargs --save-dev\n```\n\nSee usage examples in [docs](/docs/typescript.md).\n\n## Webpack\n\nSee usage examples of yargs with webpack in [docs](/docs/webpack.md).\n\n## Community :\n\nHaving problems? want to contribute? join our [community slack](http://devtoolscommunity.herokuapp.com).\n\n## Documentation :\n\n### Table of Contents\n\n* [Yargs' API](/docs/api.md)\n* [Examples](/docs/examples.md)\n* [Parsing Tricks](/docs/tricks.md)\n  * [Stop the Parser](/docs/tricks.md#stop)\n  * [Negating Boolean Arguments](/docs/tricks.md#negate)\n  * [Numbers](/docs/tricks.md#numbers)\n  * [Arrays](/docs/tricks.md#arrays)\n  * [Objects](/docs/tricks.md#objects)\n  * [Quotes](/docs/tricks.md#quotes)\n* [Advanced Topics](/docs/advanced.md)\n  * [Composing Your App Using Commands](/docs/advanced.md#commands)\n  * [Building Configurable CLI Apps](/docs/advanced.md#configuration)\n  * [Customizing Yargs' Parser](/docs/advanced.md#customizing)\n* [Contributing](/contributing.md)\n\n## Supported Node.js Versions\n\nLibraries in this ecosystem make a best effort to track\n[Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a\npost on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).\n\n[travis-url]: https://travis-ci.org/yargs/yargs\n[travis-image]: https://img.shields.io/travis/yargs/yargs/master.svg\n[npm-url]: https://www.npmjs.com/package/yargs\n[npm-image]: https://img.shields.io/npm/v/yargs.svg\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[standard-url]: http://standardjs.com/\n[conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg\n[conventional-commits-url]: https://conventionalcommits.org/\n[slack-image]: http://devtoolscommunity.herokuapp.com/badge.svg\n[slack-url]: http://devtoolscommunity.herokuapp.com\n[type-definitions]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yargs\n[coverage-image]: https://img.shields.io/nycrc/yargs/yargs\n[coverage-url]: https://github.com/yargs/yargs/blob/master/.nycrc\n","readmeFilename":"README.md","gitHead":"58846b2ad393acacd8b1845e129ec35aabdfbfa0","bugs":{"url":"https://github.com/yargs/yargs/issues"},"_id":"yargs@16.0.0-alpha.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-TtybORLNa2qubYmjrLmVqUpomc07GEC/yzjmQZP1mtFiZAwEAyCK8fXcum8VaZb2ZQlWCYy1rdqZcalm3W/Rcg==","shasum":"7489a21929f5d0fa924e5fcaeb42924b608f09a9","tarball":"http://registry-npm.ywwl.com/yargs/download/yargs-16.0.0-alpha.2.tgz","fileCount":53,"unpackedSize":289489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOee5CRA9TVsSAnZWagAACdYP/j2C4hDPKTZwr9cFVTCi\nXB8TKuG/56hASsNtngeJ4NzKOphSS6BaryZh6Necmye/ROQYJcSRTSHIHN6Q\nvAdRxuKEezYSQ4Neje41iq78ApegMgI/VR7TFxVL3BLNO8hRPJ/HCRbcdlZh\ncw5RPk+oc9teAameygobHFa85ewVR/XsK57VyKomJwZ4Mq939Qmo189LVKJl\njzsb0iBWoaAW391FL581L8yBHkxrknHAiHnGZYMTLSjBy4DNmARTdvHihb8H\nb5x13MvWnsnXdTOsifTAEzk8YzV2jSOI+9RzkgYAm4oOTfQfUmejjTAWg/KG\nmlSEnvEQFVQ+s+040unLa7bPgHfwEGSH0VB7ZCE1/3i5OKrdV4n5P4koTWKn\nmomb6TrDYSVMSgWCR+oKkTE3wrPVQ33zG8voIEjBBDQQ55QKjCbezddrMafF\nO+YPYWY/QHbzPWQGBw32yWnPLR7u/D4OAi7Az63nMg3UC/S0/iCxo12X2UQn\n4gQvF2KQCZB5GbDVTJvZ/SIDqETyWY9p420AghnJ133hgZm/akwKI0CS3jt/\n/DKZ0Sn2COwz1tNtKqokLip2jrt1p2v8eAYK8dAb+QQkpH3Oa7BuRKL7WdYZ\n62RXeZtfEtZahQ45VzrF6MLz+jLuHbK31PDBKRMGSyGZRkbnTez9WXQeg7vW\n/29O\r\n=4e92\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJUIC4oi/8ZLVrkvSTZwMktWUtScQNWJqqYmvYoWASnAiAgopZtINYNy84RC6bG9TLVSoDP2keunxXBpGd3mW+1Lg=="}],"size":64246,"noattachment":false,"key":"/yargs/-/yargs-16.0.0-alpha.2.tgz"},"maintainers":[{"email":"bencoe@gmail.com","name":"bcoe"},{"email":"bencoe+oss-bot@gmail.com","name":"oss-bot"}],"_npmUser":{"name":"oss-bot","email":"bencoe+oss-bot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yargs_16.0.0-alpha.2_1597630393110_0.2328675618725704"},"_hasShrinkwrap":false,"publish_time":1597630393279,"_cnpm_publish_time":1597630393279,"dist-tags":{"browser":"18.0.0-browser.2","latest":"18.2.0","latest-11":"11.1.1","latest-13":"13.3.2","latest-14":"14.2.3","latest-16":"16.2.2","latest-17":"17.7.3","latest-7":"7.1.2","next":"18.0.0-candidate.7","next-14":"14.2.1","next-15":"15.5.0-candidate.0","next-16":"16.2.2-candidate.0","next-17":"17.7.3-candidate.0"}}