Minargs - Minimal Argument Parser
JSON →minargs is a JavaScript argument parser designed for minimal configuration and assumptions. Currently at version 2.1.0, it provides a barebones approach to parsing command-line arguments without built-in usage messages, validation, type coercion, or strictness. Its core philosophy is to 'Bring Your Own Usage™️' and 'Bring Your Own Validation™️', making it highly flexible but requiring more boilerplate for complex applications. It maintains zero runtime dependencies and aims for consistent results, returning a structured object containing `args`, `positionals`, `remainder`, and `argv` for fine-grained control over parsed input. This library is suitable for projects where developers prefer explicit control over argument processing rather than relying on opinionated, feature-rich parsers, and requires Node.js versions `^12.13.0 || ^14.15.0 || >=16`.
Traffic · last 30 days ↑100% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇮 Finland · 🇫🇷 France