file-type

file-type

sindresorhus

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

4.3k Stars
394 Forks
4.3k Watchers
JavaScript Language
mit License
100 SrcLog Score
Cost to Build
$9.29M
Market Value
$61.35M

Growth over time

2 data points  ·  2026-04-08 → 2026-04-15
Stars Forks Watchers
💬

How do you feel about this project?

Ask AI about file-type

Question copied to clipboard

What is the sindresorhus/file-type GitHub project? Description: "Detect the file type of a file, stream, or data". Written in JavaScript. Explain what it does, its main use cases, key features, and who would benefit from using it.

Question is copied to clipboard — paste it after the AI opens.

How to clone file-type

Clone via HTTPS

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

Clone via SSH

[email protected]:sindresorhus/file-type.git

Download ZIP

Download master.zip

Found an issue?

Report bugs or request features on the file-type issue tracker:

Open GitHub Issues