commander
15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed
15.1.0 is the newest release of 15.x.
In short
4 breaking1 new1 fixed1 internal
- Breaking
only lone
--no-*option sets default option value totrue, default not implicitly set when define both positive and negative option in either order
- Breaking
migrated Commander implementation from CommonJS to ESM
- Breaking
Commander 15 requires Node.js v22.12.0 or higher (for
require(esm)).
- Breaking
removed deprecated export of
commander/esm.mjs
Release note
Commander 15 is ESM only. This is expected to be seamless for ESM consumers, but some CommonJS consumers may hit issues with tooling requiring configuration for ESM-only dependencies. See Migration Tips below.
The release of Commander 15 moves Commander 14 into maintenance. Commander 14 will get security updates for
12 months (to May 2027). For more info see Release Policy.
Added
Show excess command-arguments in error message
Fixed
- Breaking
only lone
--no-*option sets default option value totrue, default not implicitly set when define both positive and negative option in either order
Update example to use compatible character for MINGW64
Changed
- Breaking
migrated Commander implementation from CommonJS to ESM
- Breaking
Commander 15 requires Node.js v22.12.0 or higher (for
require(esm)).
Deleted
- Breaking
removed deprecated export of
commander/esm.mjs
Migration Tips
Commander 15 is ESM only, but this does not mean you need to migrate to ESM to use it. Importing ESM from CommonJS is
supported by Node.js, and Bun, and Deno. Hopefully it Just Works for you! However, you may be using a different runtime or
some other part of your setup that may not yet natively support importing ESM from CommonJS, such as your testing framework
or bundler.
If you have problems using Commander 15 in your environment, one option is stay on Commander 14 for now. Commander 14 will
get security updates until May 2027 and things will hopefully improve for your setup in the meantime.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.