ReFuel.ReMime.ReFile
0.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global ReFuel.ReMime.ReFile --version 0.1.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local ReFuel.ReMime.ReFile --version 0.1.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ReFuel.ReMime.ReFile&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package ReFuel.ReMime.ReFile --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ReFile - Simple Tool demonstrating ReMime
ReMime Command Line Tool - Determine file Media Type
refile [-r] file/directory/-...
file infer a file
directory infer files in directory. Requires -r
- infer from standard input.
-r search files and folders recursively.
-a include hidden files.
-v verbose mode, use full paths.
--list list known mime types. Will ignore files.
--help show this help text.
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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.