yargs 17.4.0

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

yargs@17.4.0 was published on 2022-03-19. Its manifest declares 7 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=12.

All yargs versions · Permanent reference to 17.4.0 · Latest release

Package specifications

Version17.4.0
License declarationMIT
Published2022-03-19T16:07:01.818Z
Node.js requirement>=12
Type declarationsNot declared
Runtime dependency count7
Peer requirement count0
Optional dependency count0
Minified sizeMeasurement not available yet
Minified + gzipMeasurement not available yet
Unpacked distribution size276.58 KiB
Published file count59
Package typemodule
ES module entry./index.mjs
Default entry./index.cjs
Side effects declarationNot declared
Direct advisories0
Resolved graph dependencies15
Repository stars11505
Repository forks1058

Install yargs 17.4.0

npm install yargs@17.4.0
pnpm add yargs@17.4.0
yarn add yargs@17.4.0

Runtime dependencies

Peer requirements

  • None declared

Optional dependencies

  • None declared

Resolved dependency graph

This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.

How to interpret the specifications

Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.

Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.

OpenSSF repository checks

Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.

Dangerous-Workflow10/10 — no dangerous workflow patterns detected
Maintained10/10 — 16 commit(s) and 27 issue activity found in the last 90 days -- score normalized to 10
Code-Review6/10 — Found 16/26 approved changesets -- score normalized to 6
Binary-Artifacts10/10 — no binaries found in the repo
Token-Permissions10/10 — GitHub workflow tokens follow principle of least privilege
Pinned-Dependencies9/10 — dependency not pinned by hash detected -- score normalized to 9
CII-Best-Practices0/10 — no effort to earn an OpenSSF best practices badge detected
Security-Policy0/10 — security policy file not detected
Fuzzing0/10 — project is not fuzzed
License10/10 — license file detected
SAST0/10 — SAST tool is not run on all commits -- score normalized to 0

Evidence and freshness