sindresorhus

file-type

Recently maintained

Detect the file type of a file, stream, or data

Stars
4,340

Community interest

Forks
398

Community forks

7-day growth
+2

Observed snapshot change

Language
JavaScript

Repository metadata

Star history & growth

Observed snapshots only. Missing observations are not invented.

4,340 ★48 observations
2026-08-102026-11-02
Inspect recent observations
DateStars
2026-10-044,325
2026-10-054,325
2026-10-064,325
2026-10-074,325
2026-10-084,326
2026-10-094,327
2026-10-104,329
2026-10-114,329
2026-10-124,332
2026-10-134,332
2026-10-144,332
2026-10-154,334
2026-10-164,334
2026-10-174,334
2026-10-184,335
2026-10-194,336
2026-10-204,336
2026-10-214,336
2026-10-224,337
2026-10-234,337
2026-10-244,337
2026-10-254,337
2026-10-264,337
2026-10-274,339
2026-10-284,340
2026-10-294,340
2026-10-304,340
2026-10-314,340
2026-11-014,340
2026-11-024,340

Get the source & start here

Cloning downloads source; follow official setup and dependency instructions.

git clone https://github.com/sindresorhus/file-type.git
READMEgithub.dev

About this project

What is file-type?

Detect the file type of a file, stream, or data

How do I get started?

Clone with git clone https://github.com/sindresorhus/file-type.git. Cloning is not a complete installation; follow the official README for dependencies, hosts and usage.

Can I use it commercially?

Current license information: MIT. Review the original terms, dependencies and your intended use.

What do maintenance and growth indicate?

Current status: Recently maintained. Activity is not a security audit. Growth uses collected snapshots; missing baselines are not estimated.