ReMime - File type detector from hell.
Go to file
2024-08-25 20:29:47 +03:00
ReMime Documentation pass. 2024-08-25 20:29:47 +03:00
ReMime.Cli ReMime - File type detector from hell. 2024-05-25 09:01:52 +03:00
ReMime.Tests ReMime - File type detector from hell. 2024-05-25 09:01:52 +03:00
.gitignore ReMime - File type detector from hell. 2024-05-25 09:01:52 +03:00
README.md ReMime - File type detector from hell. 2024-05-25 09:01:52 +03:00
ReMime.sln ReMime - File type detector from hell. 2024-05-25 09:01:52 +03:00

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.