H. Utku Maden
a89e51f5e7
(I just wanted to reference the first commit message from the git source code.)
23 lines
927 B
Markdown
23 lines
927 B
Markdown
ReMime - Simple Media Type Resolution
|
|
=====================================
|
|
ReMime is a very humble library that can identify IANA media types of file
|
|
from their file extension and its content. While being fully extensible
|
|
with your own resolvers, ReMime will also refer to your operating system's
|
|
file type database when resolving files.
|
|
|
|
Platform Caveats
|
|
----------------
|
|
* On Windows, the default resolver assumes your application has read access to
|
|
the registry.
|
|
* On Linux, not all `/etc/mime.types` syntax is supported.
|
|
* None of this was written with MacOS in mind. But maybe it'll work?
|
|
|
|
Refer to `ReMime.Cli` as an example of how to use the library. Refer to in line
|
|
documentation and the given default resolvers as an example resolver to
|
|
implementations.
|
|
|
|
Contributing
|
|
------------
|
|
Feel free to contribute your own file type resolvers and bug fixes. The more
|
|
file types that can be detected accurately, the better.
|