Skip to content
JS
Package

yargs

yargs the modern, pirate-themed, successor to optimist.

v18.2.0, 20 Sept 2026MITESM onlyTypes: BundledCLI tools and terminal utilities
$ npm install yargs

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
0100m200m300mSept 2025Mar 2026Sept 2026High 259.3m (25 Aug 2026)Low 68.7m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v18 first release 18.0.0, 27 May 2025
  2. v17 first release 17.0.0, 2 May 2021
  3. v16 first release 16.0.0, 9 Sept 2020
  4. v15 first release 15.0.0, 10 Nov 2019
  5. v14 first release 14.0.0, 30 Jul 2019
  6. v13 first release 13.1.0, 12 Feb 2019
  7. v12 first release 12.0.0, 26 Jun 2018
  8. v11 first release 11.0.0, 22 Jan 2018
  9. v10 first release 10.0.0, 18 Oct 2017
  10. v9 first release 9.0.0, 3 Sept 2017
  11. v8 first release 8.0.0, 1 May 2017
  12. v7 first release 7.0.0, 26 Feb 2017
  13. v6 first release 6.0.0, 30 Sept 2016
  14. v5 first release 5.0.0, 16 Aug 2016
  15. v4 first release 4.0.0, 14 Feb 2016
  16. v3 first release 3.0.0, 12 Feb 2015
  17. v2 first release 2.1.1, 7 Feb 2015
  18. v1 first release 1.0.0, 23 Nov 2013

Recent releases

VersionPublished
18.2.020 Sept 2026
18.1.026 Jul 2026
17.7.319 Jun 2026
16.2.219 Jun 2026
18.0.027 May 2025
17.7.227 Apr 2023
17.7.121 Feb 2023
17.7.016 Feb 2023
17.6.23 Nov 2022
17.6.12 Nov 2022
17.6.01 Oct 2022
17.5.116 May 2022
17.5.011 May 2022
17.4.19 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 yargs

CDN

jsDelivr: 53.6k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/yargs@18.2.0/
  • unpkghttps://unpkg.com/yargs@18.2.0/
  • esm.shhttps://esm.sh/yargs@18.2.0
PackageWeekly downloadsGzipLast releaseModuleComparison
clipanion3.6m-2 years agoESM + CommonJSyargs vs clipanion
optimist3.5m-12 years agoCommonJS-
jackspeak81.1m-7 months agoESM + CommonJS-
commander375.2m-3 months agoESM only-
dashdash16.1m-5 years agoCommonJS-
command-line-args5.7m-6 months agoESM + CommonJS-
argparse197.9m-14 days agoCommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.