file-type 2.0.0
Detect the file type of a Buffer/Uint8Array
file-type@2.0.0 was published on 2014-12-19. Its manifest declares 1 runtime dependency and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=0.10.0.
All file-type versions · Permanent reference to 2.0.0 · Latest release
Package specifications
| Version | 2.0.0 |
|---|---|
| License declaration | MIT |
| Published | 2014-12-19T02:50:53.090Z |
| Node.js requirement | >=0.10.0 |
| Type declarations | Not declared |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | Not supplied |
| Published file count | Not supplied |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 10 |
| Repository stars | 4339 |
| Repository forks | 398 |
Install file-type 2.0.0
npm install file-type@2.0.0 pnpm add file-type@2.0.0 yarn add file-type@2.0.0
Runtime dependencies
- meow ^2.0.0
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.
- camelcase@1.2.1 — indirect
- camelcase-keys@1.0.0 — indirect
- get-stdin@4.0.1 — indirect
- indent-string@1.2.2 — indirect
- is-finite@1.1.0 — indirect
- map-obj@1.0.1 — indirect
- meow@2.1.0 — direct
- minimist@1.2.8 — indirect
- object-assign@2.1.1 — indirect
- repeating@1.1.3 — indirect
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.
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/2.0.0 — retrieved 2026-10-29T10:26:40.029Z
- 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/2.0.0 — retrieved 2026-10-29T10:26:40.586Z
- https://api.deps.dev/v3/systems/npm/packages/file-type/versions/2.0.0:dependencies — retrieved 2026-10-29T10:26:40.641Z