file-type 17.1.1
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
file-type@17.1.1 was published on 2021-12-28. Its manifest declares 3 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is ^12.20.0 || ^14.13.1 || >=16.0.0.
All file-type versions · Permanent reference to 17.1.1 · Latest release
Package specifications
| Version | 17.1.1 |
|---|---|
| License declaration | MIT |
| Published | 2021-12-28T17:37:46.425Z |
| Node.js requirement | ^12.20.0 || ^14.13.1 || >=16.0.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 3 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 79.73 KiB |
| Published file count | 11 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | Not declared |
| Direct advisories | 2 |
| Resolved graph dependencies | 15 |
| Repository stars | 4339 |
| Repository forks | 398 |
Install file-type 17.1.1
npm install file-type@17.1.1 pnpm add file-type@17.1.1 yarn add file-type@17.1.1
Runtime dependencies
- strtok3 ^7.0.0-alpha.7
- token-types ^5.0.0-alpha.2
- readable-web-to-node-stream ^3.0.2
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @tokenizer/token@0.3.0 — indirect
- abort-controller@3.0.0 — indirect
- base64-js@1.5.1 — indirect
- buffer@6.0.3 — indirect
- event-target-shim@5.0.1 — indirect
- events@3.3.0 — indirect
- ieee754@1.2.1 — indirect
- peek-readable@5.4.2 — indirect
- process@0.11.10 — indirect
- readable-stream@4.8.0 — indirect
- readable-web-to-node-stream@3.0.4 — direct
- safe-buffer@5.2.1 — indirect
- string_decoder@1.3.0 — indirect
- strtok3@7.1.1 — direct
- token-types@5.0.1 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Known direct advisories
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Maintained | 2/10 — 3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2 |
|---|---|
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Security-Policy | 9/10 — security policy file detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Code-Review | 0/10 — Found 0/30 approved changesets -- score normalized to 0 |
| SAST | 0/10 — no SAST tool detected |
| Binary-Artifacts | 0/10 — binaries present in source code |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
Evidence and freshness
- https://registry.npmjs.org/file-type/17.1.1 — retrieved 2026-10-29T09:28:43.066Z
- https://api.deps.dev/v3/projects/github.com%2Fsindresorhus%2Ffile-type — retrieved 2026-10-29T05:59:37.106Z
- https://api.deps.dev/v3/systems/npm/packages/file-type/versions/17.1.1 — retrieved 2026-10-29T09:28:43.578Z
- https://api.deps.dev/v3/systems/npm/packages/file-type/versions/17.1.1:dependencies — retrieved 2026-10-29T09:28:43.613Z