vercel/arg
Simple argument parsing observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3301
- days_rel: n/a
- days_push: 776
- n_releases_24m: 0
Adoption not part of the score
1292 stars · 57 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
arg is a small, unopinionated CLI argument parsing library for Node.js that maps command-line flags to typed values via a simple spec object. It performs no validation, leaving requirement checking to the application.
Use cases
- parse command-line arguments in a node script
- handle flags and aliases in a cli tool
- parse --port=1234 style options with types
- support repeated flags like -vvv
- collect positional arguments from argv
When to choose
- you want a tiny, dependency-free argument parser
- you need typed flag parsing without validation overhead
- you prefer handling required-option checks yourself
When to avoid
- you need built-in validation, help text generation, or subcommands
- you want a batteries-included CLI framework
- you need parsing outside Node.js
Facets
library · maturity maintenance
parser cli developer-tools parsers cli argv-parsing argument-parser minimal unopinionated command-line nodejs javascript
2 sources
- readme: https://github.com/vercel/arg · fetched 2026-08-28 · 2cfb9dfbd1fa
- registry_npm: https://registry.npmjs.org/arg · fetched 2026-08-29 · ba80e1bcc81e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| vercel/arg | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem