Mimety is a tiny library for Elixir that help you handle mime types. Complete list of mime types defined here.
Usage
iex> Mimety.extension("cpp")
"text/x-c"
iex(1)> Mimety.mime_to_extension("text/x-c")
["c", "cc", "cxx", "cpp", "h", "hh", "dic"]
Installation
Package can be installed by adding mimety
to your list of dependencies in mix.exs
:
def deps do
[{:mimety, "~> 0.1.0"}]
end
License
Mimety is licensed under the MIT License. See LICENSE for more information.