(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |