has-flag
npmdormant
has-flag last released 5.0.1 on 2021-07-19. Its latest version requires Node.js >=12.
Facts
- Latest release
- 5.0.1, (5 years ago)
- First published
- (11 years ago)
- Releases in the last 12 months
- 0
- Median days between major versions
- 545
- Monthly downloads
- 1,080,266,021
- License
- MIT
- Repository
- github.com/sindresorhus/has-flag
- Homepage
- github.com/sindresorhus/has-flag
- Source
- registry.npmjs.org (checked 2026-10-19)
Major versions
5 major versions have been published.
| Major | First version | First released | Latest version | Latest released |
|---|---|---|---|---|
| 5 | 5.0.0 | 2021-04-16 | 5.0.1 | 2021-07-19 |
| 4 | 4.0.0 | 2019-04-06 | 4.0.0 | 2019-04-06 |
| 3 | 3.0.0 | 2018-01-02 | 3.0.0 | 2018-01-02 |
| 2 | 2.0.0 | 2016-04-11 | 2.0.0 | 2016-04-11 |
| 1 | 1.0.0 | 2015-07-07 | 1.0.0 | 2015-07-07 |
Runtime requirements
The latest version of has-flag declares these runtime constraints.
| Runtime | Constraint | Minimum version | Since version | Since |
|---|---|---|---|---|
| Node.js | >=12 | 12.0.0 | 5.0.0 | 2021-04-16 |
Supported runtimes
The latest version of has-flag runs on 15 tracked runtime releases.
| Runtime | Cycle | Released | End of life | LTS |
|---|---|---|---|---|
| Node.js | 26 | 2026-05-05 | 2029-04-30 | yes |
| Node.js | 25 | 2025-10-15 | 2026-06-01 | |
| Node.js | 24 | 2025-05-06 | 2028-04-30 | yes |
| Node.js | 23 | 2024-10-16 | 2025-06-01 | |
| Node.js | 22 | 2024-04-24 | 2027-04-30 | yes |
| Node.js | 21 | 2023-10-17 | 2024-06-01 | |
| Node.js | 20 | 2023-04-18 | 2026-04-30 | yes |
| Node.js | 19 | 2022-10-18 | 2023-06-01 | |
| Node.js | 18 | 2022-04-19 | 2025-04-30 | yes |
| Node.js | 17 | 2021-10-19 | 2022-06-01 | |
| Node.js | 16 | 2021-04-20 | 2023-09-11 | yes |
| Node.js | 15 | 2020-10-20 | 2021-06-01 | |
| Node.js | 14 | 2020-04-21 | 2023-04-30 | yes |
| Node.js | 13 | 2019-10-22 | 2020-06-01 | |
| Node.js | 12 | 2019-04-23 | 2022-04-30 | yes |
Keelbench tracks end-of-life dates for 469 products, updated daily. Check your repositories against these dates with Deps.