image-type 5.2.0
Detect the image type of a Buffer/Uint8Array
image-type@5.2.0 was published on 2023-01-15. Its manifest declares 1 runtime dependency and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=14.16.
All image-type versions · Permanent reference to 5.2.0 · Latest release
Package specifications
| Version | 5.2.0 |
|---|---|
| License declaration | MIT |
| Published | 2023-01-15T00:04:36.656Z |
| Node.js requirement | >=14.16 |
| Type declarations | Bundled declarations |
| 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 | 6.89 KiB |
| Published file count | 5 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 16 |
| Repository stars | 425 |
| Repository forks | 16 |
Install image-type 5.2.0
npm install image-type@5.2.0 pnpm add image-type@5.2.0 yarn add image-type@5.2.0
Runtime dependencies
- file-type ^18.1.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.
- @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
- file-type@18.7.0 — direct
- 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 — indirect
- safe-buffer@5.2.1 — indirect
- string_decoder@1.3.0 — indirect
- strtok3@7.1.1 — indirect
- token-types@5.0.1 — 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.
| Code-Review | 2/10 — Found 6/30 approved changesets -- score normalized to 2 |
|---|---|
| Maintained | 0/10 — 1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| Security-Policy | 9/10 — security policy file detected |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/image-type/5.2.0 — retrieved 2026-10-31T22:54:08.056Z
- https://api.deps.dev/v3/systems/npm/packages/image-type/versions/5.2.0 — retrieved 2026-10-31T22:54:08.459Z
- https://api.deps.dev/v3/projects/github.com%2Fsindresorhus%2Fimage-type — retrieved 2026-10-29T10:21:57.313Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/systems/npm/packages/image-type/versions/5.2.0:dependencies — retrieved 2026-10-31T22:54:08.484Z