</>PackageGraphPackageGraph

yargs

npmv18.0.0

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

0
Weekly downloads
3
Dependents
28
Dependencies
5/100
Popularity

Overview

yargs is an npm package that yargs the modern, pirate-themed, successor to optimist. The latest version is 18.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need yargs the modern, pirate-themed, successor to optimist and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • Large dependency tree (28 direct dependencies) increases install size and audit surface.
  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Relationship graph

Dependencies (left) and dependents (right) of yargs.

Dependencies

Runtime (6)

cliui ^9.0.1escalade ^3.1.1get-caller-file ^2.0.5string-width ^7.2.0y18n ^5.0.5yargs-parser ^22.0.0

Dev (22)

@babel/eslint-parser ^7.26.10@babel/preset-typescript ^7.26.0@types/chai ^4.2.11@types/mocha ^9.0.0@types/node ^20.0.0@typescript-eslint/eslint-plugin ^8.26.1browserslist-generator ^2.0.1c8 ^9.1.0chai ^4.2.0chalk ^4.0.0cpr ^3.0.1cross-env ^7.0.2cross-spawn ^7.0.6eslint ^8.57.1eslint-plugin-prettier ^5.1.2gts ^5.2.0hashish 0.0.4mocha ^10.8.2rimraf ^3.0.2typescript ^5.8.3which ^2.0.0yargs-test-extends ^1.0.1

Used by

Popular packages that depend on yargs.

Alternatives to yargs

Frequently installed together

Version history

VersionPublishedLicense
17.7.31 month agoMIT
16.2.21 month agoMIT
16.2.2-candidate.01 month agoMIT
17.7.3-candidate.01 month agoMIT
18.0.0latest1 year agoMIT
18.0.0-candidate.71 year agoMIT
18.0.0-candidate.61 year agoMIT
18.0.0-candidate.51 year agoMIT
18.0.0-candidate.41 year agoMIT
18.0.0-candidate.31 year agoMIT
18.0.0-browser.21 year agoMIT
18.0.0-browser.11 year agoMIT
18.0.0-browser.01 year agoMIT
18.0.0-candidate.21 year agoMIT
18.0.0-candidate.11 year agoMIT
17.7.23 years agoMIT
17.7.13 years agoMIT
17.7.03 years agoMIT
17.6.23 years agoMIT
17.6.13 years agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install yargs?

Run `npm install yargs` to add yargs to your npm project.

What license is yargs released under?

yargs is distributed under the MIT license.

How popular is yargs?

yargs has approximately 0 downloads per week and 3 known dependent packages.