</>PackageGraphPackageGraph

getopts

npmv2.3.0TypeScript

Parse CLI arguments.

4M
Weekly downloads
1
Dependents
2
Dependencies
82/100
Popularity

Overview

getopts is an npm package that parse CLI arguments. It is very popular, with about 4M downloads per week and 1 known dependents in the graph. The latest version is 2.3.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need parse CLI arguments and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (4M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (2 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

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

Relationship graph

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

knexgetopts
getopts dependencies dependents

Dependencies

Dev (2)

c8 *twist *

Used by

Popular packages that depend on getopts.

Alternatives to getopts

Frequently installed together

Version history

VersionPublishedLicense
2.3.0latest5 years agoMIT
2.2.57 years agoMIT
2.2.47 years agoMIT
2.2.37 years agoMIT
2.2.27 years agoMIT
2.2.18 years agoMIT
2.2.08 years agoMIT
2.1.28 years agoMIT
2.1.18 years agoMIT
2.1.08 years agoMIT
2.0.68 years agoMIT
2.0.58 years agoMIT
2.0.48 years agoMIT
2.0.38 years agoMIT
2.0.28 years agoMIT
2.0.18 years agoMIT
2.0.08 years agoMIT
1.0.28 years agoMIT
1.0.18 years agoMIT
1.0.08 years agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install getopts?

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

What license is getopts released under?

getopts is distributed under the MIT license.

How popular is getopts?

getopts has approximately 4,013,727 downloads per week and 1 known dependent packages.