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
- json: pop the path segment when a non-empty array closes
- fix: detect SVG files that start with a UTF-8 BOM
- Add support for so, udf, nrg file format
- iso, udf, nrg: add support for disc images
- Add support for Peppol XML documents
- Microsoft Office PPT, PPTX, DOC, DOCX, XLS, XLSX are not detected
- Check how we fare against https://github.com/sindresorhus/file-type/tree/main/fixture
- add semicolon separated values
- js: add legacy mime types
- Fix doc detection that is wrongly detected as ppt
- Docs
- Go not yet supported