pnpm
Version:
Fast, disk space efficient package manager
158 lines (157 loc) • 8.38 kB
JSON
{
"_args": [
[
{
"raw": "yargs@^12.0.5",
"scope": null,
"escapedName": "yargs",
"name": "yargs",
"rawSpec": "^12.0.5",
"spec": ">=12.0.5 <13.0.0",
"type": "range"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@zkochan/libnpx"
]
],
"_from": "yargs@^12.0.5",
"_hasShrinkwrap": false,
"_id": "yargs@12.0.5",
"_location": "/yargs",
"_nodeVersion": "10.11.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/yargs_12.0.5_1542670748690_0.9993556394467005"
},
"_npmUser": {
"name": "bcoe",
"email": "ben@npmjs.com"
},
"_npmVersion": "6.4.1",
"_phantomChildren": {
"ansi-regex": "3.0.0"
},
"_requested": {
"raw": "yargs@^12.0.5",
"scope": null,
"escapedName": "yargs",
"name": "yargs",
"rawSpec": "^12.0.5",
"spec": ">=12.0.5 <13.0.0",
"type": "range"
},
"_requiredBy": [
"/@zkochan/libnpx"
],
"_resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz",
"_shasum": "05f5997b609647b64f66b81e3b4b10a368e7ad13",
"_shrinkwrap": null,
"_spec": "yargs@^12.0.5",
"_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@zkochan/libnpx",
"bugs": {
"url": "https://github.com/yargs/yargs/issues"
},
"contributors": [
{
"name": "Yargs Contributors",
"url": "https://github.com/yargs/yargs/graphs/contributors"
}
],
"dependencies": {
"cliui": "^4.0.0",
"decamelize": "^1.2.0",
"find-up": "^3.0.0",
"get-caller-file": "^1.0.1",
"os-locale": "^3.0.0",
"require-directory": "^2.1.1",
"require-main-filename": "^1.0.1",
"set-blocking": "^2.0.0",
"string-width": "^2.0.0",
"which-module": "^2.0.0",
"y18n": "^3.2.1 || ^4.0.0",
"yargs-parser": "^11.1.1"
},
"description": "yargs the modern, pirate-themed, successor to optimist.",
"devDependencies": {
"chai": "^4.1.2",
"chalk": "^1.1.3",
"coveralls": "^3.0.2",
"cpr": "^2.0.0",
"cross-spawn": "^6.0.4",
"es6-promise": "^4.0.2",
"hashish": "0.0.4",
"mocha": "^5.1.1",
"nyc": "^11.7.3",
"rimraf": "^2.5.0",
"standard": "^11.0.1",
"standard-version": "^4.2.0",
"which": "^1.2.9",
"yargs-test-extends": "^1.0.1"
},
"directories": {},
"dist": {
"integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==",
"shasum": "05f5997b609647b64f66b81e3b4b10a368e7ad13",
"tarball": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz",
"fileCount": 40,
"unpackedSize": 218045,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb80mdCRA9TVsSAnZWagAAJrcP/0ZraUqusJqKdKMqiABg\ncmoJSK85DWRAa2txgFqeRcii6coHM2TDTb0JVp04XwZrDUEZGYAgvX1pquuo\nWuT0tY25iJbRnE+IsBJB8uWeOjlJzYqPs5TEOAqzFPcV29DpfJDcqmD9St85\nDBdOKM4Nh6qx/5qGBesf9j/OC4OPqhRDc0xvI1VN6MDGpUWwplhcsiA4ICmk\ni/0hxAL0SpdxEhQyuZHa6DlDHqf2JmyGQaOY+9dTlaw62s3gGiTfIXJ07d93\nqRvAyAn6Ds/1GEdIcFWsW5/6H0wO6aBwDeOmF7GviK5L86GkyVPMsqhZ+I6H\nDI7MgTk5P3bYHBdU2UDQmMzpZ3yxNWUlIKGOTkJnmOg36GHvbHo4T/j4jtr+\nBW1lm6du7WVWPo0DBGJXjanBYf3Wt8O/DCtBonJfpx7CSne4HifRf3SiC6ax\n3tNdogDbEEczD7uN2emlgzK9ghMhTAcRDlDjZho1IcS+Geu407PTj9NNGWe3\n3zwT3pgb2ufzZLV/dGOOMBwJagAbtivXh50JALa8yuvhuU9ZHTtskC3K4VUv\n7hxIncGLdD7mTuo9doi8oYSxbdHR61f69W9K3zi9IZjJOAlFphuNFz/JKYMb\nIGQT8KKRiAO6bOAsRKPbZdM8mYxUfayAENw9o5aShIwF35AqGvociIePV05b\n+Zol\r\n=b56Z\r\n-----END PGP SIGNATURE-----\r\n"
},
"engine": {
"node": ">=6"
},
"files": [
"index.js",
"yargs.js",
"lib",
"locales",
"completion.sh.hbs",
"LICENSE"
],
"gitHead": "8789bf4f56940248316c58997b107b029dbdb297",
"homepage": "https://yargs.js.org/",
"keywords": [
"argument",
"args",
"option",
"parser",
"parsing",
"cli",
"command"
],
"license": "MIT",
"main": "./index.js",
"maintainers": [
{
"name": "bcoe",
"email": "ben@npmjs.com"
},
{
"name": "chevex",
"email": "alex.ford@codetunnel.com"
},
{
"name": "nexdrew",
"email": "andrewbgoode@gmail.com"
}
],
"name": "yargs",
"optionalDependencies": {},
"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<br>\n\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![NPM version][npm-image]][npm-url]\n[![js-standard-style][standard-image]][standard-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 --save\n```\n\nBleeding edge version with the most recent features:\n```bash\nnpm i yargs@next --save\n```\n\n## Usage :\n\n### Simple Example\n\n````javascript\n#!/usr/bin/env node\nconst argv = require('yargs').argv\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 default: false\n })\n .argv\n```\n\nRun the example above with `--help` to see the help for the application.\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* [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[travis-url]: https://travis-ci.org/yargs/yargs\n[travis-image]: https://img.shields.io/travis/yargs/yargs/master.svg\n[coveralls-url]: https://coveralls.io/github/yargs/yargs\n[coveralls-image]: https://img.shields.io/coveralls/yargs/yargs.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",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/yargs/yargs.git"
},
"scripts": {
"coverage": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"release": "standard-version",
"test": "nyc --cache mocha --require ./test/before.js --timeout=8000 --check-leaks"
},
"standard": {
"ignore": [
"**/example/**"
]
},
"version": "12.0.5"
}