Observed since 20 Oct, 09:11 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
parse argument options
parse argument options
This module is the guts of optimist's argument parser without all the fanciful decoration.
var argv = require('minimist')(process.argv.slice(2));
console.dir(argv);
$ node example/parse.js -a beep -b boop
{ _: [], a: 'beep', b: 'boop' }
$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz
{
_: ['foo', 'bar', 'baz'],
x: 3,
y: 4,
n: 5,
a: true,
b: true,
c: true,
beep: 'boop'
}
var parseArgs = require('minimist')
Return an argument object argv populated with the array arguments from args.
argv._ contains all the arguments that didn't have an option associated with
them.
Numeric-looking arguments will be returned as numbers unless opts.string or
opts.boolean is set for that argument name.
Any arguments after '--' will not be parsed and will end up in argv._.
options can be:
opts.string - a string or array of strings argument names to always treat as
stringsopts.boolean - a boolean, string or array of strings to always treat as
booleans. if true will treat all double hyphenated arguments without equal signs
as boolean (e.g. affects --foo, not -f or --foo=bar)opts.alias - an object mapping string names to strings or arrays of string
argument names to use as aliasesopts.default - an object mapping string argument names to default valuesopts['--'] - when true, populate argv._ with everything before the --
and argv['--'] with everything after the --. Here's an example:> require('./')('one two three -- four five --six'.split(' '), { '--': true })
{
_: ['one', 'two', 'three'],
'--': ['four', 'five', '--six'],
}
Note that with opts['--'] set, parsing for arguments still stops after the
--.
With npm do:
npm install minimist
MIT
npm · 90 observations shown. Missing days are unknown.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-19 – 2026-10-19 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-18 – 2026-10-18 | 18,848,075 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-17 – 2026-10-17 | 17,774,587 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-16 – 2026-10-16 | 32,620,840 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-15 – 2026-10-15 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-14 – 2026-10-14 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-13 – 2026-10-13 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-12 – 2026-10-12 | 31,372,721 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-11 – 2026-10-11 | 17,512,061 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-10 – 2026-10-10 | 17,427,330 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-09 – 2026-10-09 | 32,041,690 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-08 – 2026-10-08 | 36,295,882 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-07 – 2026-10-07 | 35,947,401 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-06 – 2026-10-06 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-05 – 2026-10-05 | 33,251,558 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-04 – 2026-10-04 | 16,936,279 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-03 – 2026-10-03 | 17,326,886 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-02 – 2026-10-02 | 30,165,688 | 2026-10-20T13:48:34.9133572Z |
| 2026-10-01 – 2026-10-01 | 34,839,467 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-30 – 2026-09-30 | 33,989,468 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-29 – 2026-09-29 | 33,341,199 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-28 – 2026-09-28 | 33,615,165 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-27 – 2026-09-27 | 16,136,072 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-26 – 2026-09-26 | 15,921,968 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-25 – 2026-09-25 | 28,773,420 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-24 – 2026-09-24 | 31,621,779 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-23 – 2026-09-23 | 31,704,919 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-22 – 2026-09-22 | 30,119,793 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-21 – 2026-09-21 | 29,683,378 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-20 – 2026-09-20 | 18,672,839 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-19 – 2026-09-19 | 16,887,954 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-18 – 2026-09-18 | 27,122,464 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-17 – 2026-09-17 | 29,335,972 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-16 – 2026-09-16 | 29,529,879 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-15 – 2026-09-15 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-14 – 2026-09-14 | 29,564,222 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-13 – 2026-09-13 | 14,318,602 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-12 – 2026-09-12 | 13,911,290 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-11 – 2026-09-11 | 26,552,257 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-10 – 2026-09-10 | 29,515,053 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-09 – 2026-09-09 | 30,096,615 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-08 – 2026-09-08 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-07 – 2026-09-07 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-06 – 2026-09-06 | 14,385,729 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-05 – 2026-09-05 | 14,523,366 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-04 – 2026-09-04 | 26,030,173 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-03 – 2026-09-03 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-02 – 2026-09-02 | 30,279,309 | 2026-10-20T13:48:34.9133572Z |
| 2026-09-01 – 2026-09-01 | 29,287,334 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-31 – 2026-08-31 | 26,187,792 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-30 – 2026-08-30 | 13,095,845 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-29 – 2026-08-29 | 12,856,533 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-28 – 2026-08-28 | 24,274,925 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-27 – 2026-08-27 | 27,043,106 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-26 – 2026-08-26 | 26,905,762 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-25 – 2026-08-25 | 27,596,119 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-24 – 2026-08-24 | 26,214,325 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-23 – 2026-08-23 | 12,882,263 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-22 – 2026-08-22 | 12,679,035 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-21 – 2026-08-21 | 23,705,061 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-20 – 2026-08-20 | 26,054,982 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-19 – 2026-08-19 | 26,145,802 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-18 – 2026-08-18 | 26,754,740 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-17 – 2026-08-17 | 23,579,724 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-16 – 2026-08-16 | 12,501,690 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-15 – 2026-08-15 | 12,600,383 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-14 – 2026-08-14 | 0 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-13 – 2026-08-13 | 26,179,606 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-12 – 2026-08-12 | 26,210,399 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-11 – 2026-08-11 | 26,088,682 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-10 – 2026-08-10 | 25,552,666 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-09 – 2026-08-09 | 12,464,515 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-08 – 2026-08-08 | 12,402,354 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-07 – 2026-08-07 | 24,120,945 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-06 – 2026-08-06 | 22,121,761 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-05 – 2026-08-05 | 26,211,899 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-04 – 2026-08-04 | 26,548,451 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-03 – 2026-08-03 | 25,301,276 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-02 – 2026-08-02 | 12,266,182 | 2026-10-20T13:48:34.9133572Z |
| 2026-08-01 – 2026-08-01 | 12,361,159 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-31 – 2026-07-31 | 22,417,637 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-30 – 2026-07-30 | 25,164,846 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-29 – 2026-07-29 | 25,203,905 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-28 – 2026-07-28 | 26,556,964 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-27 – 2026-07-27 | 24,916,787 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-26 – 2026-07-26 | 11,689,829 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-25 – 2026-07-25 | 11,532,619 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-24 – 2026-07-24 | 22,498,465 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-23 – 2026-07-23 | 24,815,943 | 2026-10-20T13:48:34.9133572Z |
| 2026-07-22 – 2026-07-22 | 25,401,540 | 2026-10-20T13:48:34.9133572Z |
Matched to the package identity. Affected version ranges have not been evaluated.
Observed since 20 Oct, 09:11 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:274bd6805183fc45e3ecf51bd78349dce66e21d405f4f4dbe228cd488f14f2e9