Skip to content
A read-only and immutable MIME type module for Elixir
Branch: master
Clone or download
Latest commit 0673ffa Mar 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Update application.ex Mar 7, 2019
priv Automatically recompile the lib if the compile time database is out o… May 28, 2018
test Automatically recompile the lib if the compile time database is out o… May 28, 2018
.formatter.exs Add a .formatter.exs file and check for formatted files on CI (#25) Feb 13, 2018
.gitignore Add docs tooling May 3, 2016
.travis.yml
LICENSE Migrate to MIME module name Apr 30, 2016
README.md Remove unused badge May 28, 2018
mix.exs Release v1.3.1 Nov 24, 2018
mix.lock Bump ExDoc Nov 24, 2018

README.md

MIME

Build Status

A read-only and immutable MIME type module for Elixir.

This 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.

This library is used by projects like Plug and Phoenix.

See the documentation for more information.

Installation

The package can be installed as:

  1. Add mime to your list of dependencies in mix.exs:

    def deps do
      [{:mime, "~> 1.2"}]
    end
  2. 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.

    def application do
      [applications: [:mime]]
    end

License

MIME source code is released under Apache 2 License.

Check LICENSE file for more information.

You can’t perform that action at this time.