{"bugs":{"url":"https://github.com/minimistjs/minimist/issues"},"dist":{"shasum":"0085d5501e29033748a2f2a4da0180142697a475","tarball":"https://registry.npmjs.org/minimist/-/minimist-0.2.4.tgz","fileCount":21,"integrity":"sha512-Pkrrm8NjyQ8yVt8Am9M+yUt74zE3iokhzbG1bFVNjLB92vwM71hf40RkEsryg98BujhVOncKm/C1xROxZ030LQ==","signatures":[{"sig":"MEYCIQDC8bKV5QnJnci7N9gRT4Dxzt7loH1NysMhDbpNpiR3/gIhALl3ggxiPPWDaxPjy2CopwK3uiqjKAWgBOflYTVGulCX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+ageACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoZw/9Hi0sCVeQtVDQatxiwswU3fAhx1z6n02WfQVy0snRCY35d7Jp\r\nWMNkesM5exIUtm3g+v8pSk13UKEqw1SFyBBwVi26DJhQVeNUnaEX/q4nPrHF\r\nb0axV/FGCKhNrkiJpb0a1K1/vqFybnoq3X2QY4P7ALmgGTX8Dm/64KLpMZEP\r\nk2UDNuTnNRnjeWdO6mO6CKzhhvYfeeT+Wl5UAfCWZQVHBlzwVXh6zTQN8g3L\r\nSl0e1+kE35mBzXnP6K9SVof8LY1/3Ggamr0xGI81KAMGUo7QrCIBzgzYS8uH\r\nnFHLG/+sIaAHRV7c/EyCoJoDdsXw/2LF/Ty/81Vg0YOVYb5PBh71+TUOrPrD\r\ndhO4x3/xOUxeJgdFErJESKhmUy+oXlyiudgyv44gGSsKF8W2PuK4KUTTJGsO\r\nFZZMJDtMKne3o5K7z11tZreA9lPDsVThDiPtlRJypllm26iG4YgYirQ2nVs6\r\nky4HI4qnlhC8Qs5L06atYJMvHY0HVoUGMRKTdLDVDywdaA1D54wGg2pOpTYW\r\nMPVffCgsi92JnNCKkn9o7HVCN3u/ZugZRqND0JL1BSI/AVlCWtK2Jjlaiw0F\r\nIhJnMdiKTak9QafJEzbqgRYMXFVP2CP2hFbK/mV8duCCkAoJLME3744PoLhO\r\na2AKcIGxP4FdQJirELoSeDzVEKXjck1HzTk=\r\n=WBqU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"minimist","author":{"url":"http://substack.net","name":"James Halliday","email":"mail@substack.net"},"readme":"# minimist <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nparse argument options\n\nThis module is the guts of optimist's argument parser without all the\nfanciful decoration.\n\n[![browser support](https://ci.testling.com/substack/minimist.png)](http://ci.testling.com/substack/minimist)\n\n[![build status](https://secure.travis-ci.org/substack/minimist.png)](http://travis-ci.org/substack/minimist)\n\n# example\n\n``` js\nvar argv = require('minimist')(process.argv.slice(2));\nconsole.dir(argv);\n```\n\n```\n$ node example/parse.js -a beep -b boop\n{ _: [], a: 'beep', b: 'boop' }\n```\n\n```\n$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz\n{\n\t_: ['foo', 'bar', 'baz'],\n\tx: 3,\n\ty: 4,\n\tn: 5,\n\ta: true,\n\tb: true,\n\tc: true,\n\tbeep: 'boop'\n}\n```\n\n# methods\n\n``` js\nvar parseArgs = require('minimist')\n```\n\n## var argv = parseArgs(args, opts={})\n\nReturn an argument object `argv` populated with the array arguments from `args`.\n\n`argv._` contains all the arguments that didn't have an option associated with\nthem.\n\nNumeric-looking arguments will be returned as numbers unless `opts.string` or\n`opts.boolean` is set for that argument name.\n\nAny arguments after `'--'` will not be parsed and will end up in `argv._`.\n\noptions can be:\n\n* `opts.string` - a string or array of strings argument names to always treat as\nstrings\n* `opts.boolean` - a boolean, string or array of strings to always treat as\nbooleans. if `true` will treat all double hyphenated arguments without equal signs\nas boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`)\n* `opts.alias` - an object mapping string names to strings or arrays of string\nargument names to use as aliases\n* `opts.default` - an object mapping string argument names to default values\n* `opts['--']` - when true, populate `argv._` with everything before the `--`\nand `argv['--']` with everything after the `--`. Here's an example:\n\n```sh\n> require('./')('one two three -- four five --six'.split(' '), { '--': true })\n{\n\t_: ['one', 'two', 'three'],\n\t'--': ['four', 'five', '--six'],\n}\n```\n\nNote that with `opts['--']` set, parsing for arguments still stops after the\n`--`.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install minimist\n```\n\n# license\n\nMIT\n\n[package-url]: https://npmjs.org/package/minimist\n[npm-version-svg]: https://versionbadg.es/minimistjs/minimist.svg\n[npm-badge-png]: https://nodei.co/npm/minimist.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/minimist.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/minimist.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=minimist\n[codecov-image]: https://codecov.io/gh/minimistjs/minimist/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/minimistjs/minimist/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/minimistjs/minimist\n[actions-url]: https://github.com/minimistjs/minimist/actions\n","funding":{"url":"https://github.com/sponsors/ljharb"},"gitHead":"8c6be4872b7f49318337223f7099497c63d808d8","license":"MIT","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=auto","pretest":"npm run lint","version":"auto-changelog && git add CHANGELOG.md","posttest":"aud --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/**/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"homepage":"https://github.com/minimistjs/minimist","keywords":["argv","getopt","parser","optimist"],"testling":{"files":"test/*.js","browsers":["ie/6..latest","ff/5","firefox/latest","chrome/10","chrome/latest","safari/5.1","safari/latest","opera/12"]},"repository":{"url":"git://github.com/minimistjs/minimist.git","type":"git"},"_npmVersion":"9.5.0","description":"parse argument options","directories":{},"maintainers":[{"name":"shadowspawn","email":"npm_j@ruru.gen.nz"},{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"emilbayes","email":"github@tixz.dk"}],"_nodeVersion":"19.7.0","publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"readmeFilename":"README.md","devDependencies":{"aud":"^2.0.2","nyc":"^10.3.2","tape":"^5.6.3","eslint":"=8.8.0","npmignore":"^0.3.0","in-publish":"^2.0.1","auto-changelog":"^2.4.0","safe-publish-latest":"^2.0.0","@ljharb/eslint-config":"^21.0.1"},"_npmOperationalInternal":{"tmp":"tmp/minimist_0.2.4_1677305886182_0.9322173185260776","host":"s3://npm-registry-packages"},"_id":"minimist@0.2.4","version":"0.2.4"}