Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

commander

Package Overview
Dependencies
Maintainers
4
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commander - npm Package Versions

1
12

2.2.0

Diff

Changelog

Source

2.2.0 / 2014-03-29

  • add passing of previous option value
  • fix: support subcommands on windows. Closes #142
  • Now the defaultValue passed as the second argument of the coercion function.
tjholowaychuk
published 2.1.0 •

Changelog

Source

2.1.0 / 2013-11-21

  • add: allow cflag style option params, unit test, fixes #174
tjholowaychuk
published 2.0.0 •

Changelog

Source

2.0.0 / 2013-07-18

  • remove input methods (.prompt, .confirm, etc)
tjholowaychuk
published 1.3.2 •

tjholowaychuk
published 1.3.1 •

tjholowaychuk
published 1.3.0 •

tjholowaychuk
published 1.2.0 •

tjholowaychuk
published 1.1.1 •

tjholowaychuk
published 1.1.0 •

Changelog

Source

[11.1.0] (2023-10-13)

Fixed

  • TypeScript: update OptionValueSource to allow any string, to match supported use of custom sources ([#1983])
  • TypeScript: add that Command.version() can also be used as getter ([#1982])
  • TypeScript: add null return type to Commands.executableDir(), for when not configured ([#1965])
  • subcommands with an executable handler and only a short help flag are now handled correctly by the parent's help command ([#1930])

Added

  • registeredArguments property on Command with the array of defined Argument (like Command.options for Option) ([#2010])
  • TypeScript declarations for Option properties: envVar, presetArg ([#2019])
  • TypeScript declarations for Argument properties: argChoices, defaultValue, defaultValueDescription ([#2019])
  • example file which shows how to configure help to display any custom usage in the list of subcommands ([#1896])

Changed

  • (developer) refactor TypeScript configs for multiple use-cases, and enable checks in JavaScript files in supporting editors ([#1969])

Deprecated

  • Command._args was private anyway, but now available as registeredArguments ([#2010])
tjholowaychuk
published 1.0.5 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc