Current section
Files
Jump to
Current section
Files
src/howdy@mime.erl
-module(howdy@mime).
-compile(no_auto_import).
-export([from_path/1, from_extention/1, from_mime/1]).
-spec from_path(binary()) -> binary().
from_path(A) ->
mimerl:filename(A).
-spec from_extention(binary()) -> binary().
from_extention(A) ->
mimerl:extension(A).
-spec from_mime(binary()) -> list(binary()).
from_mime(A) ->
mimerl:mime_to_exts(A).