Skip to content

Latest commit

 

History

59 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minmay

Hex.pm License Hex.pm

GIF

Minmay is an Elixir library for mapping a file extension to MIME type or vice versa.

It was based in @samuelneff's MimeTypeMap

Installation

Add minmay to your list of dependencies in mix.exs:

def deps do
  [{:minmay, "~> 2.0"}]
end

Usage

iex> Minmay.from_extension(".jpg")
"image/jpeg"

iex> Minmay.from_filename("vacations.jpg")
"image/jpeg"

iex> Minmay.from_mime_type("image/jpeg")
".jpg"

No start/0 call is required — the library works immediately.

About

🗾 Minmay is an Elixir library for translating a file extention to MIME type or vice versa

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages