npm · npm:has-flag
has-flag active
Check if argv has a specific flag
The latest stable version of has-flag is 5.0.1, published on 2021-07-19. Verified by Vigia on 2026-11-14.
| Latest stable version | 5.0.1 |
|---|---|
| Published | 2021-07-19 17:30:54 UTC |
| Install | npm install has-flag@latest |
| Requires (engines) | {"node":">=12"} |
| Peer dependencies | — |
| Dist-tags | latest: 5.0.1 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-14 13:48:57 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the npm package "has-flag", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/has-flag . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2021-07-19 17:30:54 UTC · 1944 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 6 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
5.0.1 | 2021-07-19 17:30:54 UTC |
5.0.0 | 2021-04-16 07:50:13 UTC |
4.0.0 | 2019-04-06 15:49:21 UTC |
3.0.0 | 2018-01-02 19:21:56 UTC |
2.0.0 | 2016-04-11 15:47:58 UTC |
1.0.0 | 2015-07-07 22:43:54 UTC |
Showing the 6 most recent of 6 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 5.0.1 |
node 18 | 5.0.1 |
node 20 | 5.0.1 |
node 22 | 5.0.1 |
node 24 | 5.0.1 |
Upgrade guides for this package
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of has-flag?
The latest stable version of has-flag is 5.0.1, published on 2021-07-19. Verified by Vigia on 2026-11-14.
How do I install the latest version of has-flag?
Run npm install has-flag@latest. The latest stable version is 5.0.1 (verified 2026-11-14).
Is has-flag deprecated?
No. has-flag is not marked as deprecated in the registry.
Which Node.js version does has-flag require?
has-flag 5.0.1 declares this requirement: {"node":">=12"}.
Does has-flag 5.0.1 have known vulnerabilities?
No known advisories affect has-flag 5.0.1 according to the data Vigia checks.
Is has-flag still maintained?
has-flag published 0 stable releases in the last 12 months; the most recent was 1944 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- escape-string-regexp
- find-up
- glob-parent
- locate-path
- which
- json-schema-traverse
- readable-stream
- p-limit
- yallist
- balanced-match
- source-map
- safe-buffer
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/has-flag) [](https://vigia.coredls.cloud/npm/has-flag) [](https://vigia.coredls.cloud/npm/has-flag)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/has-flag
GET https://vigia.coredls.cloud/v1/packages/npm/has-flag/versions/{version}