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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close