</>PackageGraphPackageGraph

has-flag

npmv5.0.1

Check if argv has a specific flag

295.4M
Weekly downloads
1
Dependents
3
Dependencies
100/100
Popularity

Overview

has-flag is an npm package that check if argv has a specific flag. It is extremely widely used, with about 295.4M downloads per week and 1 known dependents in the graph. The latest version is 5.0.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need check if argv has a specific flag and value a battle-tested, widely-adopted solution.

When not to use it

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

Pros

  • Large, well-established user base (295.4M weekly downloads).
  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • 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 has-flag.

supports-hyperlin…has-flag
has-flag dependencies dependents

Dependencies

Dev (3)

ava ^3.15.0tsd ^0.14.0xo ^0.38.2

Used by

Popular packages that depend on has-flag.

Alternatives to has-flag

Version history

VersionPublishedLicense
5.0.1latest5 years agoMIT
5.0.05 years agoMIT
4.0.07 years agoMIT
3.0.08 years agoMIT
2.0.010 years agoMIT
1.0.011 years agoMIT

Maintainers

Keywords

Funding

Frequently asked questions

How do I install has-flag?

Run `npm install has-flag` to add has-flag to your npm project.

What license is has-flag released under?

has-flag is distributed under the MIT license.

How popular is has-flag?

has-flag has approximately 295,445,725 downloads per week and 1 known dependent packages.