| extension/1 | Transform an extension to a mimetype. |
| filename/1 | Return the mimetype for any file by looking at its extension. |
| mime_to_exts/1 | Return the list of extensions for a mimetype. |
| web/1 | |
| web_extension/1 | transform a web extension to a mimetype. |
extension(Ext::binary()) -> binary()
Transform an extension to a mimetype
Example:
1> mimerl:extension(<<"c">>). <<"text/x-c">>
filename(Path::file:filename_all()) -> binary()
Return the mimetype for any file by looking at its extension. Example:
1> mimerl:filename(<<"test.cpp">>). <<"text/x-c">>
mime_to_exts(Mimetype::binary()) -> [binary()]
Return the list of extensions for a mimetype. Example:
1> mimerl:mime_to_exts(<<"text/plain">>). [<<"txt">>,<<"text">>,<<"conf">>,<<"def">>,<<"list">>,<<"log">>,<<"in">>]
web(Path) -> any()
web_extension(Ext) -> any()
transform a web extension to a mimetype
Generated by EDoc