Read-only MIME type database for Elixir
open sourceApache-2.0free
MIME is a read-only, immutable MIME type module for Elixir. It embeds a minimal database of MIME types to map types to file extensions and back, is built read-only for speed, and lets an app add its own types through compile-time configuration. Plug and Phoenix use it.
Problems it solves
- get the MIME type for a file extension in Elixir
- find the file extension for a content type in an Elixir app
- register a custom MIME type in a Phoenix app
Features
- map MIME types to file extensions and back
- embedded, read-only MIME database
- add custom types with compile-time configuration