yargs
npm11.5k GitHub starsv18.2.0 · Sep 2026 · MIT (top-level declared license)
npm install yargs- No known CVEs
- 1.1B downloads/mo
- 267 versions
Description
yargs the modern, pirate-themed successor to optimist.
Licenses
Declared license
MIT (top-level declared license of yargs)
Transitive dependency licenses
yargs pulls in 13 transitive dependencies across 2 distinct licenses, all permissive.
| License | Category | Dependencies |
|---|---|---|
| MIT | Permissive | 9 of 13 |
| ISC | Permissive | 4 of 13 |
This view is derived from declared package metadata, and a full FOSSA scan detects licenses that declared metadata misses. Scan free.
License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.
Need yargs approved? Get the full license and vulnerability report for your codebase. Scan free.
Scan freeVulnerabilities
No known CVEs across published versions
Version history
| Version | Published | License |
|---|---|---|
| 18.2.0 | Sep 2026 | MIT |
| 18.1.0 | Jul 2026 | |
| 17.7.3 | Jun 2026 | |
| 16.2.2 | Jun 2026 | |
| 18.0.0 | May 2025 | |
| 17.7.2 | Apr 2023 | |
| 17.7.1 | Feb 2023 | |
| 17.7.0 | Feb 2023 | |
| 17.6.2 | Nov 2022 | |
| 17.6.1 | Nov 2022 | |
| 17.6.0 | Oct 2022 | |
| 17.5.1 | May 2022 | |
| 17.5.0 | May 2022 | |
| 17.4.1 | Apr 2022 | |
| 17.4.0 | Mar 2022 | |
| 17.3.1 | Dec 2021 | |
| 17.3.0 | Nov 2021 | |
| 17.2.1 | Sep 2021 | |
| 17.2.0 | Sep 2021 | |
| 17.1.1 | Aug 2021 | |
| 17.1.0 | Aug 2021 | |
| 17.0.1 | May 2021 | |
| 17.0.0 | May 2021 | |
| 7.1.2 | Apr 2021 | |
| 16.2.0 | Dec 2020 |
25 older releases
| Version | Published | License |
|---|---|---|
| 16.1.1 | Nov 2020 | |
| 16.1.0 | Oct 2020 | |
| 16.0.3 | Sep 2020 | |
| 16.0.2 | Sep 2020 | |
| 16.0.1 | Sep 2020 | |
| 16.0.0 | Sep 2020 | |
| 15.4.1 | Jul 2020 | |
| 15.4.0 | Jul 2020 | |
| 7.1.1 | May 2020 | |
| 15.3.1 | Mar 2020 | |
| 13.3.2 | Mar 2020 | |
| 14.2.3 | Mar 2020 | |
| 15.3.0 | Mar 2020 | |
| 15.2.0 | Mar 2020 | |
| 15.1.0 | Jan 2020 | |
| 14.2.2 | Nov 2019 | |
| 15.0.2 | Nov 2019 | |
| 15.0.1 | Nov 2019 | |
| 15.0.0 | Nov 2019 | |
| 14.2.1 | Oct 2019 | |
| 11.1.1 | Oct 2019 | |
| 14.2.0 | Oct 2019 | |
| 14.1.0 | Sep 2019 | |
| 14.0.0 | Jul 2019 | |
| 13.3.0 | Jun 2019 |
Latest pre-release: 16.2.2-candidate.0 (Jun 2026). Pre-releases (canary, beta, release candidate and similar) are not listed.
npm install yargs resolves to the 18.x line today. Older major lines may still receive fixes.
Direct dependencies
6 direct dependencies, 13 in total including transitive. Licenses across the full tree are summarized under Licenses.
| Package | Version range | License |
|---|---|---|
| cliui | ^9.0.1 | ISC |
| escalade | ^3.1.1 | MIT |
| get-caller-file | ^2.0.5 | ISC |
| string-width | ^8.2.1 | MIT |
| y18n | ^5.0.5 | ISC |
| yargs-parser | ^22.0.0 | ISC |
Based on what each package declares in its published metadata. The dependencies your build actually installs can differ, and a FOSSA scan of your project resolves the full tree.
Popularity
- Downloads last month
- 1.1B
- Known dependents in this corpus
- 9,806
- GitHub stars
- 11.5k
- OpenSSF score
- 6.8 / 10
FAQ
- What is the latest version of yargs?
- The latest version of yargs is 18.2.0, published September 2026.
- What license is yargs under?
- yargs declares MIT as its top-level declared license. Its dependency tree spans 2 distinct licenses.
- Does yargs have known vulnerabilities?
- No known CVEs are recorded against published versions of yargs.
- How do I install yargs?
- Install yargs with npm install yargs.
- How do I generate an SBOM that includes yargs?
- FOSSA's SBOM generator produces SPDX or CycloneDX output for a codebase that includes yargs. Generate an SPDX or CycloneDX SBOM free.