Skip to content
JS
Package

detect-file-type

Detect file type by signature

v0.2.8, 2 Feb 2020WTFPLCommonJSTypes: None
$ npm install detect-file-type

Key numbers

As of 25 Sept 2026
Weekly downloads
2.3k
-51% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
6 years ago
v0.2.8
GitHub stars
24
10 forks
Open issues / PRs
6 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02k4k6k8kSept 2025Mar 2026Sept 2026High 6.4k (16 Jun 2026)Low 1.1k (11 Aug 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,345 downloads last week, 10,315 in the last month. The 12-month change of -51% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.2.8, 2 Feb 20206 years ago
First published
-
Last push to GitHub
14 Dec 20202,110 days before the snapshot
Repository archived
No
Open issues
6
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
17

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6.0.0
Runtimes
-
Unpacked size (npm)
46 kB
Dependencies (2)
jschardeticonv-lite
npm install detect-file-type
  • jsDelivrhttps://cdn.jsdelivr.net/npm/detect-file-type@0.2.8/
  • unpkghttps://unpkg.com/detect-file-type@0.2.8/
  • esm.shhttps://esm.sh/detect-file-type@0.2.8
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 2345 < 10000; no category.