Type Flag Versions Save

⛳️ Typed command-line arguments parser for Node.js

v3.0.0

1 year ago

3.0.0 (2022-11-09)

Bug Fixes

  • flag parsing to ignore prototype (2c5bcfd)
  • remove validation already enforced by types (9d16ee5)
  • unknown flag values to be passed in explicitly (#13) (4d19ae3)
  • unknown flags to not collide with object prototype (d52925b)

Features

BREAKING CHANGES

  • replace ignoreUnknown with ignore callback and mutates passed in argv
  • typeFlag is now a named export
  • values must be explicitly passed into unknown flags (e.g. --unknown=value instead of --unknown value)

v2.2.0

1 year ago

2.2.0 (2022-06-30)

Features

v2.1.0

2 years ago

2.1.0 (2022-01-28)

Features

  • store end of flags in -- property (#9) (02244d3)

v2.0.1

2 years ago

2.0.1 (2022-01-24)

Bug Fixes

  • allow arbitrary properties on flag (#7) (3eacd35)

v2.0.0

2 years ago

2.0.0 (2021-12-17)

Bug Fixes

  • improve validation for type assertion (1787327)
  • support read-only array (fdb1d31)
  • support readonly schema (6dee21f)

Features

BREAKING CHANGES

  • rearrange typeFlag parameters
  • default flags are no longer arrays

v1.0.0

2 years ago

1.0.0 (2021-08-16)

Features

Performance Improvements

  • slight size optimization (2e9ac81)