Liking cljdoc? Tell your friends :D

jj.surykatka


get-file-typeclj

(get-file-type file)
(get-file-type file config)

Detects the file type (extension) of a byte array based on magic number signatures. Returns the keyword representing the file extension if detected, otherwise nil.

Detects the file type (extension) of a byte array based on magic number signatures.
Returns the keyword representing the file extension if detected, otherwise nil.
sourceraw docstring

get-mimeclj

(get-mime file)
(get-mime file config)

Detects the MIME type of byte array based on magic number signatures. Returns the MIME type string if detected, otherwise nil.

Detects the MIME type of byte array based on magic number signatures.
Returns the MIME type string if detected, otherwise nil.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close