YellowDogMan.MimeDetective 0.2.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package YellowDogMan.MimeDetective --version 0.2.0
NuGet\Install-Package YellowDogMan.MimeDetective -Version 0.2.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.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YellowDogMan.MimeDetective --version 0.2.0
#r "nuget: YellowDogMan.MimeDetective, 0.2.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.
// Install YellowDogMan.MimeDetective as a Cake Addin
#addin nuget:?package=YellowDogMan.MimeDetective&version=0.2.0

// Install YellowDogMan.MimeDetective as a Cake Tool
#tool nuget:?package=YellowDogMan.MimeDetective&version=0.2.0

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.2.0 185 12/14/2023
0.1.1 132 11/6/2023

Initial release