Awesome Lists

file-type

by sindresorhus

JavaScriptpushed almost 2 years ago

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

AI summary

File Detector

Detects file type by checking the magic number of a buffer or stream.

stars
3.7K
forks
356
watching
30
awesome list
1
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/sindresorhus/file-type/links.svg)](https://awesome.facts.dev/awesome/sindresorhus/file-type)
HTML
<a href="https://awesome.facts.dev/awesome/sindresorhus/file-type"><img src="https://awesome.facts.dev/shield/sindresorhus/file-type/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/sindresorhus/file-type/links.svg

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.