A simple Elixir library that maps MIME types to file extensions and vice versa.
iex> Mime.Types.type("json")
"application/json"
iex> Mime.Types.extensions("application/json")
["json"]
iex> Mime.Types.path("fixtures/users.json")
"application/json"
This module uses the public domain mime.types
file from the
Mailcap project. The file is parsed during compilation time and
embedded directly into the module.
- MIME.Magic based on Apache httpd's
magic
file.