commander
15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed
In short
1 deprecated6 new2 fixed1 changed
- Deprecated
Command._argswas private anyway, but now available asregisteredArguments
Release note
Fixed
TypeScript: Update
OptionValueSourceto allow any string, to match supported use of custom sourcesTypeScript: Add that
Command.version()can also be used as getterTypeScript: Add null return type to
Commands.executableDir(), for when not configuredSubcommands with an executable handler and only a short help flag are now handled correctly by the parent's help command
Added
registeredArgumentsproperty onCommandwith the array of definedArgument(likeCommand.optionsforOption)TypeScript declarations for Option properties:
envVar,presetArgTypeScript declarations for Argument properties:
argChoices,defaultValue,defaultValueDescriptionExample file which shows how to configure help to display any custom usage in the list of subcommands
Changed
(developer) refactor TypeScript configs for multiple use-cases, and enable checks in JavaScript files in supporting editors
Deprecated
- Deprecated
Command._argswas private anyway, but now available asregisteredArguments
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.