Arg CLI Argument Parser

JSON →
library 5.0.2 ·javascript
verified May 27, 2026

arg is a minimalist, unopinionated command-line argument parser for Node.js applications. It focuses on providing a straightforward API for defining and parsing CLI options, including type conversion (String, Number, Boolean, custom functions), flag counting (e.g., `--verbose -vvv`), and aliasing. The current stable version is 5.0.2, with recent patch releases addressing type fixes and dependency updates, while major releases are infrequent but cautious, aiming for minimal disruption. It prioritizes simplicity and direct mapping of arguments to values, leaving validation and requirement checking to the application layer. This makes it suitable for projects needing a lightweight parsing solution without bundled opinionated features common in larger CLI frameworks.

total hits 18
actors 7 distinct systems
last hit 2d ago Bingbot
ByteDance
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
1

top countries 🇩🇪 Germany · 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France