npm · npm:yargs
yargs active
yargs the modern, pirate-themed, successor to optimist.
The latest stable version of yargs is 18.2.0, published on 2026-09-20. Verified by Vigia on 2026-11-12.
| Latest stable version | 18.2.0 |
|---|---|
| Published | 2026-09-20 22:34:11 UTC |
| Install | npm install yargs@latest |
| Requires (engines) | {"node":"^20.19.0 || ^22.12.0 || >=23"} |
| Peer dependencies | — |
| Dist-tags | next: 18.0.0-candidate.7 latest: 18.2.0 browser: 18.0.0-browser.2 next-14: 14.2.1 next-15: 15.5.0-candidate.0 next-16: 16.2.2-candidate.0 next-17: 17.7.3-candidate.0 latest-7: 7.1.2 latest-11: 11.1.1 latest-13: 13.3.2 latest-14: 14.2.3 latest-16: 16.2.2 latest-17: 17.7.3 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:46:05 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-09-20 22:34:11 UTC · 53 days ago |
| Stable releases in the last 12 months | 4 |
| Published versions | 267 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
18.2.0 | 2026-09-20 22:34:11 UTC |
18.1.0 | 2026-07-26 04:07:48 UTC |
17.7.3 | 2026-06-19 02:08:41 UTC |
16.2.2 | 2026-06-19 01:52:16 UTC |
18.0.0 | 2025-05-27 14:27:19 UTC |
17.7.2 | 2023-04-27 19:59:02 UTC |
17.7.1 | 2023-02-21 15:44:58 UTC |
17.7.0 | 2023-02-16 16:42:21 UTC |
17.6.2 | 2022-11-03 16:30:07 UTC |
17.6.1 | 2022-11-02 16:24:56 UTC |
17.6.0 | 2022-10-01 01:33:06 UTC |
17.5.1 | 2022-05-16 02:14:16 UTC |
17.5.0 | 2022-05-11 22:01:17 UTC |
17.4.1 | 2022-04-09 23:15:16 UTC |
17.4.0 | 2022-03-19 16:07:01 UTC |
17.3.1 | 2021-12-23 22:42:12 UTC |
17.3.0 | 2021-11-30 19:00:21 UTC |
17.2.1 | 2021-09-25 21:19:23 UTC |
17.2.0 | 2021-09-23 01:49:20 UTC |
17.1.1 | 2021-08-13 21:08:58 UTC |
Showing the 20 most recent of 181 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 17.7.3 |
node 18 | 17.7.3 |
node 20 | 18.2.0 |
node 22 | 18.2.0 |
node 24 | 18.2.0 |
Upgrade guides for this package
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of yargs?
The latest stable version of yargs is 18.2.0, published on 2026-09-20. Verified by Vigia on 2026-11-12.
How do I install the latest version of yargs?
Run npm install yargs@latest. The latest stable version is 18.2.0 (verified 2026-11-12).
Is yargs deprecated?
No. yargs is not marked as deprecated in the registry.
Which Node.js version does yargs require?
yargs 18.2.0 declares this requirement: {"node":"^20.19.0 || ^22.12.0 || >=23"}.
Does yargs 18.2.0 have known vulnerabilities?
No known advisories affect yargs 18.2.0 according to the data Vigia checks.
Is yargs still maintained?
yargs published 4 stable releases in the last 12 months; the most recent was 53 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- nanoid
- resolve-from
- shebang-command
- hasown
- pretty-format
- fs-extra
- json5
- picocolors
- react-is
- https-proxy-agent
- cross-spawn
- path-to-regexp
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/yargs) [](https://vigia.coredls.cloud/npm/yargs) [](https://vigia.coredls.cloud/npm/yargs)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/yargs
GET https://vigia.coredls.cloud/v1/packages/npm/yargs/versions/{version}