NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #452 most downloaded on npm
Option parsing for Node, supporting types, shorthands, etc. Used by npm.
Last release 4 months ago
04 Jun 2026
Release timing varies
gaps range from 3 weeks to 1.9 years
Some releases are documented
notes for 10 of 39 stable releases
Nothing withdrawn
no release was ever pulled
16 years old
39 releases · first in 2011
103a413 #205 remove stale debug env references ( #205 ) ( @Kushagra963-lab , @giangnthph4635 )
103a413 #205 remove stale debug env references (#205) (@Kushagra963-lab, @giangnthph4635)b02073f #204 bump @npmcli/eslint-config from 6.0.1 to 7.0.0 (#204) (@dependabot[bot])One column per quarter.
this package now uses URL.parse, as the original url.parse was deprecated.
nopt now supports node ^22.22.2 || ^24.15.0 || >=26.0.082f9997 #203 bump to new node engine range (@owlstronaut)774a6d7 #203 template-oss-apply (@owlstronaut)a2d43e4 #197 remove debug statements (@wraithgar)d193a6d #197 stop using url.parse (@wraithgar)2d96ef5 #197 inline comments (@wraithgar)bc72a32 #203 template-oss-apply (@owlstronaut)149a32d #203 bumping @npmcli/template-oss from 4.30.0 to 5.1.0 (@owlstronaut)a146975 #197 updateNpm: false (@wraithgar)b71e5d3 #197 @npmcli/template-oss@4.30.0 (@wraithgar)e43345c #194 remove tap (@owlstronaut)614645a #194 swap from tap to built-in node:test (@owlstronaut)84fc8f8 #191 bump @npmcli/eslint-config from 5.1.0 to 6.0.0 (#191) (@dependabot[bot])38f4302 #193 bump @npmcli/template-oss from 4.28.0 to 4.28.1 (#193) (@dependabot[bot], @npm-cli-bot)nopt now supports node ^20.17.0 || >=22.9.0
nopt now supports node ^20.17.0 || >=22.9.0d304e27 #189 align to npm 11 node engine range (@owlstronaut)ffb5dad #189 template-oss-apply (@owlstronaut)af91ff2 #188 bump @npmcli/template-oss from 4.26.0 to 4.27.1 (#188) (@dependabot[bot], @npm-cli-bot)3319782 #180 add unknownHandler and abbrevHandler ( @wraithgar )
3319782 #180 add unknownHandler and abbrevHandler (@wraithgar)304b903 #179 log warnings about unknown config situations (@wraithgar)a7156b2 #180 remove proc-log8dd86dd #179 add proc-log@5.0.09e64314 #176 bump abbrev from 2.0.0 to 3.0.0 (#176)d7916cd #181 bump @npmcli/template-oss from 4.23.4 to 4.23.6 (#181) (@dependabot[bot], @npm-cli-bot)nopt now supports node ^18.17.0 || >=20.5.0
nopt now supports node ^18.17.0 || >=20.5.0208d02b #174 align to npm 10 node engine range (@hashtagchris)a8e567c #174 run template-oss-apply (@hashtagchris)5429145 #172 bump @npmcli/eslint-config from 4.0.5 to 5.0.0 (@dependabot[bot])5eeda97 #173 postinstall for dependabot template-oss PR (@hashtagchris)bff360b #173 bump @npmcli/template-oss from 4.23.1 to 4.23.3 (@dependabot[bot])2fb2144 #160 linting: no-unused-vars ( @lukekarrys )
2fb2144 #160 linting: no-unused-vars (@lukekarrys)2bdcfcb #160 bump @npmcli/template-oss to 4.22.0 (@lukekarrys)0aa1d01 #160 postinstall for dependabot template-oss PR (@lukekarrys)28cb4e1 #159 bump @npmcli/template-oss from 4.21.3 to 4.21.4 (@dependabot[bot])008c672 #125 add fallback option to use function when looking up types ( @lukekarrys )
008c672 #125 add fallback option to use function when looking up types (@lukekarrys)082bad3 #124 allow setting typeDefault on nopt and clean lib methods (@lukekarrys)a28412f #127 cleanup bin (#127) (@lukekarrys)7f5b507 #126 100 test coverage (#126) (@lukekarrys)6830137 #116 add lib export to use nopt in non-global mode ( #116 ) ( @lukekarrys )
6830137 #116 add lib export to use nopt in non-global mode (#116) (@lukekarrys)ce918b9 #114 remove dead code (@wraithgar)nopt is now compatible with the following semver range for node: ^14.17.0 || ^16.13.0 || >=18.0.0
replace deprecated String.prototype.substr()
linting (0cb6aa8)
replace deprecated String.prototype.substr() (#85) (40c686f)
@npmcli/template-oss@3.5.0 (56e6c7e)
linting (0cb6aa8)
replace deprecated String.prototype.substr() (#85) (40c686f)
@npmcli/template-oss@3.5.0 (56e6c7e)
fb9b1ce
Merged so many patches at once that the code fencing
(@adius) added got broken. Sorry,
(@adius)!
(@othiym23)651d447
When parsing String-typed arguments, if the next value is "", don't simply
swallow it. (@samjonester)3370ce8
Simplify initialization. (@elidoran)356e58e
Store Array.isArray(types[arg]) for reuse.
(@elidoran)0d95e90
Interpret single-item type arrays as a single type.
(@samjonester)07c69d3
Simplify key-value extraction. (@elidoran)39b6e5c
Only call Date.parse(val) once. (@elidoran)934943d
Use osenv.home() to find a user's home directory instead of assuming it's
always $HOME. (@othiym23)326ffff
Fix /tmp test to work on Windows.
(@elidoran)c89d31a
Only run Windows tests on Windows, only run Unix tests on a Unix.
(@elidoran)affd3d1
Refresh Travis to run the tests against the currently-supported batch of npm
versions. (@helio-frota)55f9449
tap@8.0.1 (@othiym23)5271229
Use JavaScript code block for syntax highlighting.
(@adius)c0d156f
The code sample in the README had many2: [ oneThing ], and now it has
many2: [ two, things ]. (@silkentrance)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →