Packages

commander

15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed

Your version

7.1.0

15 Feb 2021Where it was published

7.2.0 is the newest release of 7.x.

In short

3 new4 fixed2 changed

Release note

Added

  • Support for named imports from ECMAScript modules

  • Add .cjs to list of expected script file extensions

  • Allow using option choices and variadic together

Fixed

  • Replace use of deprecated process.mainModule

  • Regression for legacy command('*') and call when command line includes options

  • Regression for on('command:*', ...) and call when command line includes unknown options

  • Display best error for combination of unknown command and unknown option (i.e. unknown command)

Changed

  • Make TypeScript typings tests stricter

  • Improvements to README and tests

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.