• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/H28-May-2018-211152

priv/H28-May-2018-1,8561,849

test/H28-May-2018-4837

.formatter.exsH A D28-May-201874 43

.gitignoreH A D28-May-201846 76

.travis.ymlH A D28-May-2018390 2019

LICENSEH A D28-May-2018577 1410

README.mdH A D28-May-20181 KiB3823

mix.exsH A D28-May-2018875 4640

mix.lockH A D28-May-2018331 54

README.md

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