Package
yargs
yargs the modern, pirate-themed, successor to optimist.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 194.7m
- +78% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 6
- Direct, from package.json
- Last release
- 4 days ago
- v18.2.0
- GitHub stars
- 11.5k
- 1.1k forks
- Open issues / PRs
- 200 / 11
- Contributors
- 311
- Commits, last 52 weeks
- 21
Downloads
Last week 2026-09-15 to 2026-09-21
194,727,979 downloads last week, 907,344,598 in the last month. The 12-month change of +78% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 4181 in total
- Latest version
- 18.2.0, 20 Sept 20264 days ago
- First published
- 23 Nov 2013
- Last push to GitHub
- 24 Sept 2026same day as the snapshot
- Repository archived
- No
- Open issues
- 200
- Open pull requests
- 11
- Commits, last 52 weeks
- 21
- Dependents on npm
- 42,411
Major versions
- v18 first release 18.0.0, 27 May 2025
- v17 first release 17.0.0, 2 May 2021
- v16 first release 16.0.0, 9 Sept 2020
- v15 first release 15.0.0, 10 Nov 2019
- v14 first release 14.0.0, 30 Jul 2019
- v13 first release 13.1.0, 12 Feb 2019
- v12 first release 12.0.0, 26 Jun 2018
- v11 first release 11.0.0, 22 Jan 2018
- v10 first release 10.0.0, 18 Oct 2017
- v9 first release 9.0.0, 3 Sept 2017
- v8 first release 8.0.0, 1 May 2017
- v7 first release 7.0.0, 26 Feb 2017
- v6 first release 6.0.0, 30 Sept 2016
- v5 first release 5.0.0, 16 Aug 2016
- v4 first release 4.0.0, 14 Feb 2016
- v3 first release 3.0.0, 12 Feb 2015
- v2 first release 2.1.1, 7 Feb 2015
- v1 first release 1.0.0, 23 Nov 2013
Recent releases
| Version | Published |
|---|---|
| 18.2.0 | 20 Sept 2026 |
| 18.1.0 | 26 Jul 2026 |
| 17.7.3 | 19 Jun 2026 |
| 16.2.2 | 19 Jun 2026 |
| 18.0.0 | 27 May 2025 |
| 17.7.2 | 27 Apr 2023 |
| 17.7.1 | 21 Feb 2023 |
| 17.7.0 | 16 Feb 2023 |
| 17.6.2 | 3 Nov 2022 |
| 17.6.1 | 2 Nov 2022 |
| 17.6.0 | 1 Oct 2022 |
| 17.5.1 | 16 May 2022 |
| 17.5.0 | 11 May 2022 |
| 17.4.1 | 9 Apr 2022 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- ^20.19.0 || ^22.12.0 || >=23
- Runtimes
- -
- Unpacked size (npm)
- 231 kB
- Dependencies (6)
y18ncliuiescaladestring-widthyargs-parserget-caller-file
npm install yargsCDN
jsDelivr: 53.6k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/yargs@18.2.0/ - unpkg
https://unpkg.com/yargs@18.2.0/ - esm.sh
https://esm.sh/yargs@18.2.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| clipanion | 3.6m | - | 2 years ago | ESM + CommonJS | yargs vs clipanion |
| optimist | 3.5m | - | 12 years ago | CommonJS | - |
| jackspeak | 81.1m | - | 7 months ago | ESM + CommonJS | - |
| commander | 375.2m | - | 3 months ago | ESM only | - |
| dashdash | 16.1m | - | 5 years ago | CommonJS | - |
| command-line-args | 5.7m | - | 6 months ago | ESM + CommonJS | - |
| argparse | 197.9m | - | 14 days ago | CommonJS | - |
Related
Indexability: Indexed.