file-type
npmactive
file-type last released 22.2.0 on 2026-10-14. Its latest version requires Node.js >=22.
Facts
- Latest release
- 22.2.0, (10 days ago)
- First published
- (12 years ago)
- Releases in the last 12 months
- 14
- Median days between releases
- 14
- Median days between major versions
- 190
- Monthly downloads
- 245,279,452
- License
- MIT
- Repository
- github.com/sindresorhus/file-type
- Source
- registry.npmjs.org (checked 2026-10-19)
Major versions
20 major versions have been published.
| Major | First version | First released | Latest version | Latest released |
|---|---|---|---|---|
| 22 | 22.0.0 | 2026-03-26 | 22.2.0 | 2026-10-14 |
| 21 | 21.0.0 | 2025-05-23 | 21.3.4 | 2026-03-22 |
| 20 | 20.0.0 | 2025-01-15 | 20.5.0 | 2025-04-26 |
| 19 | 19.0.0 | 2024-01-07 | 19.6.0 | 2024-10-13 |
| 18 | 18.0.0 | 2022-08-24 | 18.7.0 | 2023-11-11 |
| 17 | 17.0.0 | 2021-11-24 | 17.1.6 | 2022-08-02 |
| 16 | 16.0.0 | 2020-10-18 | 16.5.4 | 2022-07-21 |
| 15 | 15.0.0 | 2020-08-26 | 15.0.1 | 2020-09-14 |
| 14 | 14.0.0 | 2020-02-02 | 14.7.1 | 2020-08-07 |
| 13 | 13.0.0 | 2020-01-07 | 13.1.2 | 2020-01-22 |
| 12 | 12.0.0 | 2019-06-12 | 12.4.2 | 2019-12-20 |
| 11 | 11.0.0 | 2019-05-04 | 11.1.0 | 2019-05-23 |
| 10 | 10.0.0 | 2018-10-07 | 10.11.0 | 2019-04-11 |
| 9 | 9.0.0 | 2018-08-10 | 9.0.0 | 2018-08-10 |
| 8 | 8.0.0 | 2018-05-12 | 8.1.0 | 2018-07-08 |
| 7 | 7.0.1 | 2017-10-08 | 7.7.1 | 2018-04-30 |
| 6 | 6.1.0 | 2017-08-15 | 6.2.0 | 2017-09-23 |
| 5 | 5.0.0 | 2017-06-06 | 5.2.0 | 2017-06-13 |
| 4 | 4.0.0 | 2016-12-13 | 4.4.0 | 2017-06-06 |
| 3 | 3.0.0 | 2015-10-11 | 3.9.0 | 2016-10-18 |
Runtime requirements
The latest version of file-type declares these runtime constraints.
| Runtime | Constraint | Minimum version | Since version | Since |
|---|---|---|---|---|
| Node.js | >=22 | 22.0.0 | 22.0.0 | 2026-03-26 |
Supported runtimes
The latest version of file-type runs on 5 tracked runtime releases.
Keelbench tracks end-of-life dates for 469 products, updated daily. Check your repositories against these dates with Deps.