Skip to content

nripankadas07/argv-strict

argv-strict

Strict typed argv parser for TypeScript — every option is declared up front in a typed schema, booleans are never coerced from strings, and unknown flags are always errors.

argv-strict is the tighter sibling of parseopts-ts. Same zero-dependency footprint, same --key=value/--key value/-k v/ clustered-flag handling, but the parser refuses to guess: --debug=true is a hard error (use --debug or --no-debug), --port abc throws INVALID_VALUE, and an unknown --foo always throws UNKNOWN_OPTION.

Install

npm install && npm run build

Requires Node 18+ and TypeScript 5.x.

About

Strict typed argv parser for TypeScript — every option has a typed schema; booleans never coerced from strings.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors