npm · npm:has-flag
has-flag active
Check if argv has a specific flag
| Latest stable version | 5.0.1 |
|---|---|
| Published | 2021-07-19 17:30:54 UTC |
| Requires (engines) | {"node":">=12"} |
| Peer dependencies | — |
| Dist-tags | latest: 5.0.1 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-09-28 08:49:46 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2021-07-19 17:30:54 UTC · 1897 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
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-09-28.
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 1897 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- escape-string-regexp
- find-up
- locate-path
- glob-parent
- json-schema-traverse
- which
- readable-stream
- p-limit
- yallist
- balanced-match
- safe-buffer
- source-map
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/has-flag
GET https://vigia.coredls.cloud/v1/packages/npm/has-flag/versions/{version}