README.md (1026B)
1 # MIME 2 3 [![CI](https://github.com/elixir-plug/mime/actions/workflows/ci.yml/badge.svg)](https://github.com/elixir-plug/mime/actions/workflows/ci.yml) 4 5 A read-only and immutable MIME type module for Elixir. 6 7 This library embeds a database of MIME types so we can map MIME types 8 to extensions and vice-versa. The library was designed to be read-only 9 for performance. This library is used by projects like Plug and Phoenix. 10 11 Master currently points to a redesign of this library with a minimal copy 12 of the MIME database. To add any [media type specified by 13 IANA](https://www.iana.org/assignments/media-types/media-types.xhtml), 14 please submit a pull request. You can also add specific types to your 15 application via a compile-time configuration, see [the documentation for 16 more information](http://hexdocs.pm/mime/). 17 18 ## Installation 19 20 The package can be installed as: 21 22 ```elixir 23 def deps do 24 [{:mime, "~> 2.0"}] 25 end 26 ``` 27 28 ## License 29 30 MIME source code is released under Apache License 2.0. 31 32 Check LICENSE file for more information.