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