yargs/yargs
yargs the modern, pirate-themed successor to optimist. observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 96
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 37
- age_days: 4682
- days_rel: 38
- days_push: 26
- n_releases_24m: 4
Adoption not part of the score
11515 stars · 1042 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Yargs is a Node.js library for parsing command-line arguments and building interactive CLI tools. It provides command and option parsing, dynamically generated help menus, and Bash/Zsh completion script generation.
Use cases
- parse command line arguments in a node script
- build a CLI tool with subcommands like serve --port=5000
- auto-generate a help menu for my command line program
- add bash and zsh tab completion to my CLI
- define positional arguments and options with defaults in node
- replace optimist or minimist with a full-featured arg parser
When to choose
- you are building a Node.js command-line tool and want argument parsing plus generated help and completions
- you need subcommands, grouped options, validation, and a polished CLI UX with minimal code
When to avoid
- you need a full interactive terminal UI rather than argument parsing
- you are not working in JavaScript/Node.js
- you only need trivial argv slicing and want zero dependencies
Facets
library · maturity stable
cli parser developer-tools developer-tools cli cross-platform argument-parsing cli-builder help-generation shell-completion optimist-successor command-line automation nodejs
3 sources
- readme: https://github.com/yargs/yargs · fetched 2026-08-28 · d8f7da558bb1
- homepage: https://yargs.js.org/ · fetched 2026-08-29 · 49b7f6c9aacd
- site_page: https://yargs.js.org/docs · fetched 2026-08-29 · 7747fee9077c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| yargs/yargs | main | 92 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem