ReFuel.ReMime
0.1.1
dotnet add package ReFuel.ReMime --version 0.1.1
NuGet\Install-Package ReFuel.ReMime -Version 0.1.1
<PackageReference Include="ReFuel.ReMime" Version="0.1.1" />
paket add ReFuel.ReMime --version 0.1.1
#r "nuget: ReFuel.ReMime, 0.1.1"
// Install ReFuel.ReMime as a Cake Addin #addin nuget:?package=ReFuel.ReMime&version=0.1.1 // Install ReFuel.ReMime as a Cake Tool #tool nuget:?package=ReFuel.ReMime&version=0.1.1
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.ReFile
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. Currently the repository is available at https://git.mixedup.dev/ReFuel/ReMime. Accepting email patches.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.