All Projects → benoitc → mimerl

benoitc / mimerl

Licence: other
library to handle mimetypes

Programming Languages

erlang
1774 projects
Makefile
30231 projects

mimerl

library to handle mimetypes

Present a way to parse IANA mediatype as defined here: http://www.iana.org/assignments/media-types/media-types.xhtml

Build

$ make

Example of usage:

1> mimerl:extension(<<"c">>).
<<"text/x-c">>
2> mimerl:filename(<<"test.cpp">>).
<<"text/x-c">>
3> mimerl:mime_to_exts(<<"text/plain">>).
[<<"txt">>,<<"text">>,<<"conf">>,<<"def">>,<<"list">>,
 <<"log">>,<<"in">>]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].