file-type 17.1.5

Detect the file type of a Buffer/Uint8Array/ArrayBuffer

file-type@17.1.5 was published on 2022-08-02. 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.5 · Latest release

Package specifications

Version17.1.5
License declarationMIT
Published2022-08-02T11:04:28.631Z
Node.js requirement^12.20.0 || ^14.13.1 || >=16.0.0
Type declarationsBundled declarations
Runtime dependency count3
Peer requirement count0
Optional dependency count0
Minified sizeMeasurement not available yet
Minified + gzipMeasurement not available yet
Unpacked distribution size80.76 KiB
Published file count11
Package typemodule
ES module entryNot declared
Default entryNot declared
Side effects declarationNot declared
Direct advisories1
Resolved graph dependencies15
Repository stars4339
Repository forks398

Install file-type 17.1.5

npm install file-type@17.1.5
pnpm add file-type@17.1.5
yarn add file-type@17.1.5

Runtime dependencies

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.

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.

Maintained2/10 — 3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2
Dangerous-Workflow10/10 — no dangerous workflow patterns detected
Security-Policy9/10 — security policy file detected
Token-Permissions0/10 — detected GitHub workflow tokens with excessive permissions
CII-Best-Practices0/10 — no effort to earn an OpenSSF best practices badge detected
Code-Review0/10 — Found 0/30 approved changesets -- score normalized to 0
SAST0/10 — no SAST tool detected
Binary-Artifacts0/10 — binaries present in source code
License10/10 — license file detected
Fuzzing0/10 — project is not fuzzed
Pinned-Dependencies0/10 — dependency not pinned by hash detected -- score normalized to 0
Branch-Protection0/10 — branch protection not enabled on development/release branches

Evidence and freshness