1# MIME
2
3[![Build Status](https://travis-ci.org/elixir-plug/mime.svg?branch=master)](https://travis-ci.org/elixir-plug/mime)
4
5A read-only and immutable MIME type module for Elixir.
6
7This library embeds the MIME type database so we can map MIME types to extensions and vice-versa. The library was designed to be read-only for performance. New types can only be added at compile-time via configuration.
8
9This library is used by projects like Plug and Phoenix.
10
11See [the documentation for more information](http://hexdocs.pm/mime/).
12
13## Installation
14
15The package can be installed as:
16
171. Add mime to your list of dependencies in `mix.exs`:
18
19    ```elixir
20    def deps do
21      [{:mime, "~> 1.2"}]
22    end
23    ```
24
252. If there is an `applications` key in your `mix.exs`, add `:mime` to the list. This step is not necessary if you have `extra_applications` instead.
26
27    ```elixir
28    def application do
29      [applications: [:mime]]
30    end
31    ```
32
33## License
34
35MIME source code is released under Apache 2 License.
36
37Check LICENSE file for more information.
38