type-flag

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

MIT License

Downloads
212.2K
Stars
167
Committers
1
type-flag - v3.0.0 Latest Release

Published by privatenumber almost 2 years 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)
type-flag - v2.2.0

Published by privatenumber over 2 years ago

2.2.0 (2022-06-30)

Features

type-flag - v2.1.0

Published by privatenumber over 2 years ago

2.1.0 (2022-01-28)

Features

  • store end of flags in -- property (#9) (02244d3)
type-flag - v2.0.1

Published by privatenumber almost 3 years ago

2.0.1 (2022-01-24)

Bug Fixes

  • allow arbitrary properties on flag (#7) (3eacd35)
type-flag - v2.0.0

Published by privatenumber almost 3 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
type-flag - v1.0.0

Published by privatenumber about 3 years ago

1.0.0 (2021-08-16)

Features

Performance Improvements

  • slight size optimization (2e9ac81)