has-flag

Check if argv has a specific flag

npm says / week

npm says 397,528,243

real installs / week

≈ 381M–398M

high confidencebest guess 391M

About 2% of npm's count looks like noise.

Most used major version: 4, not the latest one, with 73% of last week's downloads above the crawler floor. Most used single version: 4.0.0.

Mirror spikes and crawlers removed. CI and dependency installs still count, so this is not a head count. Snapshot from the daily build of Nov 27, 2026, last 7 days of npm data. With JavaScript on, this page recomputes it live from the npm API.

How many people use has-flag?

npm counted 397,528,243 downloads of has-flag in the last 7 days. Nobody can count people exactly, npm included: it does not record who downloaded what. After removing mirror spikes and crawlers, about 381M–398M look like real installs. Noise is 2% of npm's count. What remains still includes CI and installs as a dependency of other packages.

Is has-flag still maintained?

Probably not actively: there has been no release in over a year, though that can also mean it is simply finished. The latest version, 5.0.1, came out on Jul 19, 2021. There were no stable releases in the last 12 months. It was first published on Jul 7, 2015. npm lists 1 maintainer.

Is has-flag still used?

Downloads with publish spikes removed are up 28% over 3 months and up 83% over 11 months. For scale, the median of the 582 packages we track, which lean towards today's most downloaded, is up 184% over 11 months, so this one is behind that. Last week, 73% of downloads above the crawler floor were on major version 4, not the latest one; the most used single version was 4.0.0, with 73%. Weekdays get 1.9× the downloads of weekends, which fits people at work, though CI follows the same rhythm. Crawlers account for about 7,680,123 downloads a week, roughly 1,280,021 per version.

Monthly downloads of has-flag

The busiest month was Oct 2026, with about 54,889,694 downloads a day once publish spikes are removed; the quietest was Dec 2025 (the holiday season), with about 26,838,041.

monthnpm downloadspublish spikes removedreal installsvs month before
Oct 2026 1,536,911,440 0 1.47B–1.54B about flat
Sep 2026 1,584,705,963 0 1.52B–1.58B up 20%
Aug 2026 1,368,503,692 0 1.31B–1.37B about flat
Jul 2026 1,339,796,513 0 1.29B–1.34B about flat
Jun 2026 1,251,752,890 0 1.2B–1.25B up 9%
May 2026 1,182,806,619 0 1.14B–1.18B about flat
Apr 2026 1,135,957,335 0 1.09B–1.14B about flat
Mar 2026 1,213,824,897 0 1.16B–1.21B up 14%
Feb 2026 964,532,371 0 926M–965M up 13%
Jan 2026 945,175,500 0 907M–945M up 14%
Dec 2025 831,979,285 0 798M–832M —

Whole months through Oct 31, 2026. Publish spikes are found day by day and summed per month. Real installs apply this week's crawler share to each month's downloads (the upper end also keeps the removed spikes), so they follow npm's curve rather than measure it. The change compares spike-free downloads per day.

How the estimate works

  1. Cut the spike every new version gets from mirrors and scanners in its first days.
  2. Subtract the crawler floor: the flat count crawlers download from every version each week.
  3. Show what is left as a range, with a confidence level. It still includes CI and dependency installs, so it is not a count of people.

Read the methodology