YellowDogMan.MimeDetective 0.3.0

Prefix Reserved
dotnet add package YellowDogMan.MimeDetective --version 0.3.0
                    
NuGet\Install-Package YellowDogMan.MimeDetective -Version 0.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YellowDogMan.MimeDetective" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YellowDogMan.MimeDetective" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="YellowDogMan.MimeDetective" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add YellowDogMan.MimeDetective --version 0.3.0
                    
#r "nuget: YellowDogMan.MimeDetective, 0.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=YellowDogMan.MimeDetective&version=0.3.0
                    
Install YellowDogMan.MimeDetective as a Cake Addin
#tool nuget:?package=YellowDogMan.MimeDetective&version=0.3.0
                    
Install YellowDogMan.MimeDetective as a Cake Tool

Mime-Detective

Mime type for files.

Based on https://filetypedetective.codeplex.com/

Usage


// Both ways are writing the data to a temp file
// to get a FileInfo. GetFileType are extension methods
byte[] fileData = ...;
FileType fileType = fileData.GetFileType();
   
// or 
Stream fileDataStream = ...;
FileType fileType = fileDataStream.GetFileType();

// If writing to a temp file is not practicable use it like this
byte[] fileData = ...;
FileType fileType = MimeTypes.GetFileType(() => fileData);
   
Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • 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.

Version Downloads Last updated
0.3.0 109 2/26/2025
0.2.0 306 12/14/2023
0.1.1 163 11/6/2023

Initial release