cl-mime-from-string

2020-04-27

A one function library to return a mime-type based on the file extension found at the end of a string. ie abc.txt -> text/plain. The common types implemented are from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types

Upstream URL

github.com/K1D77A/cl-mime-from-string

Author

K1D77A

License

MIT
README

cl-mime-from-string

This is a single function library. the one function: mime-type-from-string takes a single string and returns the mime-type based on the extension if there is no extension then it will return the value of default

(cl-mime-from-string:mime-type-from-string "abc.txt") -> "text/plain"

License

MIT

Dependencies (0)

    Dependents (0)

      • GitHub
      • Quicklisp