argue-cli
JSON →argue-cli is a lightweight and strongly typed command-line argument parser designed specifically for Node.js environments. It provides a declarative API for defining expected arguments and options, including aliases and type assertions for option values. The current stable version is 2.1.0, with a recent major release (v2.0.0) indicating ongoing development, though a fixed release cadence isn't specified. Its key differentiators lie in its "thin" design, aiming for minimal overhead, and its robust TypeScript support, which enables compile-time checking of CLI argument parsing logic. This helps developers avoid common runtime errors associated with loosely typed argument parsers by enforcing argument structures and types upfront. It focuses on explicitly consuming arguments with methods like `read`, `expect`, and `end`, ensuring all arguments are processed or an error is thrown for unexpected input.
Traffic · last 30 days ↑150% vs prev 7d
top countries 🇨🇦 Canada · 🇩🇪 Germany · 🇺🇸 United States · 🇸🇬 Singapore · 🇮🇳 India