https://github.com/benoitc/mimerl
library to handle mimetypes
https://github.com/benoitc/mimerl
Last synced: 11 months ago
JSON representation
library to handle mimetypes
- Host: GitHub
- URL: https://github.com/benoitc/mimerl
- Owner: benoitc
- License: other
- Created: 2015-05-04T17:29:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T13:32:56.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T17:59:22.281Z (11 months ago)
- Language: Erlang
- Size: 565 KB
- Stars: 28
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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">>]