yargs-parser
22.0.0 · 26 May 2025ISC371M / weekRepositoryHomepagenpmAtom feed
71 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 22.x · latest line
22.0.0
26 May 2025- breaking
Yargs is now ESM first
Yargs is now ESM first
- 21.x
21.1.0
3 Aug 2022Allow the browser build to be imported
halt-at-non-option: prevent known args from being parsed when "unknown-options-as-args" is enabled
Node version check now uses process.versions.node
Features
Allow the browser build to be imported
Bug Fixes
halt-at-non-option: prevent known args from being parsed when "unknown-options-as-args" is enabled
Node version check now uses process.versions.node
Parse options ending with 3+ hyphens
21.0.1
27 Feb 2022Return deno env object
21.0.0
16 Nov 2021- breaking
Drops support for 10
Esm json import
Parser should preserve inner quotes
Breaking changes
- breaking
Drops support for 10
Bug Fixes
Esm json import
Parser should preserve inner quotes
- 20.x
20.2.9
20 Jun 2021build: fixed automated release pipeline
20.2.7
10 Mar 2021deno: force relese for Deno
20.2.6
22 Feb 2021populate--: -- should always be array
20.2.5
13 Feb 2021Do not lowercase camel cased string
20.2.4
9 Nov 2020deno: address import issues in Deno
20.2.3
16 Oct 2020exports: node 13.0 and 13.1 require the dotted object form with a string fallback
20.2.2
14 Oct 2020exports: node 13.0-13.6 require a string fallback
20.2.1
1 Oct 2020deno: update types for deno ^1.4.0
20.2.0
21 Sep 2020string-utils: export looksLikeNumber helper
unknown-options-as-args: convert positionals that look like numbers
20.1.0
20 Sep 2020Adds parse-positional-numbers configuration
build: update release-please; make labels kick off builds
- 19.x
19.0.4
27 Aug 2020build: fixing publication
19.0.1
9 Aug 2020build: push tag created for deno
19.0.0
9 Aug 2020- breaking
Adds support for ESM and Deno
- breaking
ts: projects using
@types/yargs-parsermay see variations in type definitions. - breaking
Drops Node 6. begin following Node.js LTS schedule
Breaking changes
- breaking
Adds support for ESM and Deno
- breaking
ts: projects using
@types/yargs-parsermay see variations in type definitions. - breaking
Drops Node 6. begin following Node.js LTS schedule
Features
Adds support for ESM and Deno
Expose camelCase and decamelize helpers
deps: update to latest camelcase/decamelize
Bug Fixes
Boolean numeric short option
Raise permission error for Deno if config load fails
types: switch back to using Partial types
- 18.x
18.1.3
16 Apr 2020setArg: options using camel-case and dot-notation populated twice
18.1.2
26 Mar 2020array, nargs: support -o=--value and --option=--value format
18.1.0
7 Mar 2020Introduce single-digit boolean aliases
18.0.0
2 Mar 2020- breaking
The narg count is now enforced when parsing arrays.
NaN can now be provided as a value for nargs, indicating "at least" one value is expected for array
- 17.x
17.1.0
1 Mar 2020Introduce greedy-arrays config, for specifying whether arrays consume multiple positionals
17.0.1
29 Feb 2020Normalized keys were not enumerable
17.0.0
10 Feb 2020- breaking
This reverts parsing behavior of booleans to that of yargs@14
- breaking
Objects used during parsing are now created with a null
prototype. There may be some scenarios where this change in behavior
leaks externally. Boolean arguments will not be collected into an implicit array
Breaking changes
- breaking
This reverts parsing behavior of booleans to that of yargs@14
- breaking
Objects used during parsing are now created with a null
prototype. There may be some scenarios where this change in behavior
leaks externally.
Features
Boolean arguments will not be collected into an implicit array
Introduce nargs-eats-options config option
Bug Fixes
Address bugs with "uknown-options-as-args"
Array should take precedence over nargs, but enforce nargs
Support keys that collide with object prototypes
Unknown options terminated with digits now handled by unknown-options-as-args
- 16.x
16.1.0
1 Nov 2019- breaking
Populate error if incompatible narg/count or array/count options are used
Options that have had their default value used are now tracked
Populate error if incompatible narg/count or array/count options are used
Breaking changes
- breaking
Populate error if incompatible narg/count or array/count options are used
Features
Options that have had their default value used are now tracked
Populate error if incompatible narg/count or array/count options are used
Reverts
Revert 16.0.0 CHANGELOG entry
16.0.0
27 Oct 2019- 15.x
15.0.3
20 Jun 2021build: should use releases_created when using manifest
15.0.2
20 Jun 2021perf: address slow parse when using unknown-options-as-args
- 14.x
14.0.0
6 Sep 2019- 13.x
13.1.2
13 Mar 202013.1.1
10 Jun 2019Convert values to strings when tokenizing
Nargs should allow duplicates when duplicate-arguments-array=false
Should populate "_" when given config with "short-option-groups" false
- 12.x
12.0.0
29 Jan 2019- 11.x
- 10.x
- 9.x
- 8.x
- 7.x
7.0.0
2 May 2017