Packages

commander

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

Your version

6.0.0

major19 Jul 2020Where it was published

6.2.1 is the newest release of 6.x.

In short

1 breaking2 new1 fixed

  • Breaking

    Breaking throw an error if there might be a clash between option name and a Command property, with advice on how to resolve

Release note

Added

  • Add support for variadic options

  • Allow options to be added with just a short flag

    • Breaking the option property has same case as flag. e.g. flag -n accessed as opts().n (previously uppercase)

  • Breaking

    Breaking throw an error if there might be a clash between option name and a Command property, with advice on how to resolve

Fixed

  • Options which contain -no- in the middle of the option flag should not be treated as negatable.

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.