Socket
Socket
Sign inDemoInstall

optionator

Package Overview
Dependencies
6
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1

0.7.0

Diff

Changelog

Source

0.7.0

  • added concatrepeatedarrays option: oneValuePerFlag, only allows one array value per flag
  • added typeAliases option
  • added parseArgv which takes an array and parses with the first two items sliced off
  • changed enum help style
  • bug fixes (#12)
  • use of concatRepeatedArrays and mergeRepeatedObjects at the top level is deprecated, use it as either a per-option option, or set them in the defaults object to set them for all objects
gkz
published 0.6.0 •

Changelog

Source

0.6.0

  • added defaults lib-option flag, allowing one to set default properties for all options
  • added concatRepeatedArrays and mergeRepeatedObjects as option level properties, allowing you to turn this feature on for specific options only
gkz
published 0.5.0 •

Changelog

Source

0.5.0

  • Boolean flags with default: 'true', and no short aliases, will by default show the --no version in help
gkz
published 0.4.0 •

Changelog

Source

0.4.0

  • add mergeRepeatedObjects setting
gkz
published 0.3.0 •

Changelog

Source

0.3.0

  • add concatRepeatedArrays setting
  • add overrideRequired option setting
  • use just Levenshtein string compare algo rather than Levenshtein Damerau to due dependency license issue
gkz
published 0.2.2 •

Changelog

Source

0.2.2

  • bug fixes
gkz
published 0.2.1 •

Changelog

Source

0.2.1

  • improved interpolation
  • added changelog
gkz
published 0.2.0 •

Changelog

Source

0.2.0

  • add dependency checks to options - added dependsOn as an option property
  • add interpolation for prepend and append text with new generateHelp option, interpolate
gkz
published 0.1.1 •

Changelog

Source

0.1.1

  • update dependencies
gkz
published 0.1.0 •

Changelog

Source

0.1.0

  • initial release
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc