Getopts Versions Save

Node.js CLI options parser

2.3.0

3 years ago
  • Migrate to ES modules (#52).
  • Use GitHub Actions.
  • Migrate tests to Twist.

1.0.0

5 years ago

Getopts is a Node.js CLI options parser.

2.2.3

5 years ago
  • Add new opts.stopEarly option (#41).

2.2.0

5 years ago
  • Rewrite tests using Testmatrix (#37).
  • Fix bug where boolean options weren't added to the output object (#36).
  • Introduce new opts.string option (#35).

2.1.1

5 years ago
  • Add TypeScript types.

2.0.0

6 years ago
  • Parse - as an operand (generally used to tell a program to read from standard input) (#31).
  • Add new opts.boolean (#30).
  • Optimize the number of times options.unknown is invoked based on the fact that default and boolean options are known (#29).
  • Optimize adding operands after -- (#25).
  • Optimize aliases mapping by avoiding repeated array accesses (#24).
  • Don't mutate options.default (#23).
  • Optimize short flag splitting (#22).
  • Access options.booleans map only once for every short option.