mimetype
https://github.com/gabriel-vasile/mimetype
Go
A fast Golang library for media type and file extension detection, based on magic numbers
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Go not yet supported1 Subscribers
Add a CodeTriage badge to mimetype
Help out
- Issues
- all: increase defaultLimit from 3072 to 4096
- Fix doc detection that is wrongly detected as ppt
- Add header "Message-ID" to eml hints to correctly detect type in enron email dataset
- Full scan couldn't detect application/msexcel
- Add support for text/vnd.familysearch.gedcom content type
- add new MIME types.
- fix: detect RTF files with trailing null bytes
- charset: stop checking for ascii if utf8 is satisfied
- text/rtf can have a trailing 0x00 byte
- Add support for inode/* MIME types in DetectFile
- Docs
- Go not yet supported