legendary-doc-site/apps/core/deps/mime
2020-07-03 21:41:01 -05:00
..
lib chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
priv chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
.fetch chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
.formatter.exs chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
.hex chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
hex_metadata.config chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
LICENSE chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
mix.exs chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
README.md chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00

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.