Skip to main content
FOSSA Logo
Skip to package details

yargs

npm11.5k GitHub stars

v18.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.

LicenseCategoryDependencies
MITPermissive9 of 13
ISCPermissive4 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 free

Vulnerabilities

No known CVEs across published versions

Version history

Published versions
VersionPublishedLicense
18.2.0Sep 2026MIT
18.1.0Jul 2026
17.7.3Jun 2026
16.2.2Jun 2026
18.0.0May 2025
17.7.2Apr 2023
17.7.1Feb 2023
17.7.0Feb 2023
17.6.2Nov 2022
17.6.1Nov 2022
17.6.0Oct 2022
17.5.1May 2022
17.5.0May 2022
17.4.1Apr 2022
17.4.0Mar 2022
17.3.1Dec 2021
17.3.0Nov 2021
17.2.1Sep 2021
17.2.0Sep 2021
17.1.1Aug 2021
17.1.0Aug 2021
17.0.1May 2021
17.0.0May 2021
7.1.2Apr 2021
16.2.0Dec 2020
25 older releases
Older published versions
VersionPublishedLicense
16.1.1Nov 2020
16.1.0Oct 2020
16.0.3Sep 2020
16.0.2Sep 2020
16.0.1Sep 2020
16.0.0Sep 2020
15.4.1Jul 2020
15.4.0Jul 2020
7.1.1May 2020
15.3.1Mar 2020
13.3.2Mar 2020
14.2.3Mar 2020
15.3.0Mar 2020
15.2.0Mar 2020
15.1.0Jan 2020
14.2.2Nov 2019
15.0.2Nov 2019
15.0.1Nov 2019
15.0.0Nov 2019
14.2.1Oct 2019
11.1.1Oct 2019
14.2.0Oct 2019
14.1.0Sep 2019
14.0.0Jul 2019
13.3.0Jun 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.

Direct dependencies
PackageVersion rangeLicense
cliui^9.0.1ISC
escalade^3.1.1MIT
get-caller-file^2.0.5ISC
string-width^8.2.1MIT
y18n^5.0.5ISC
yargs-parser^22.0.0ISC

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.

Dependency graph and package metadata from deps.dev (Google Open Source Insights), used under CC BY 4.0.

Download counts from the npm public registry API.

Repository stars from the GitHub API.

OpenSSF Scorecard results from deps.dev.

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.