MimeTyper 1.0.1

.NET MimeType Helper with realtime update from apache docs main git trunk

namespace Purple.Sdk.MimeTyper.Tests
{
   public class MimeTyperTests
   {
       [Fact]
       public async Task GetExtensionFromMimeType()
       {
           var downloader = new MimeTyper();
           var ext = await downloader.GetExtensionFromMimeType("image/jpeg");
           Assert.Equal("jpeg", ext);
       }

       [Fact]
       public async Task GetMimeTypeFromExtension()
       {
           var downloader = new MimeTyper();
           var ext = await downloader.GetMimeTypeFromExtension("jpeg");
           Assert.Equal("image/jpeg", ext);
       }
   }
}

Install-Package MimeTyper -Version 1.0.1
dotnet add package MimeTyper --version 1.0.1
<PackageReference Include="MimeTyper" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MimeTyper --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MimeTyper, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MimeTyper as a Cake Addin
#addin nuget:?package=MimeTyper&version=1.0.1

// Install MimeTyper as a Cake Tool
#tool nuget:?package=MimeTyper&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 38 2/21/2021
1.0.0 57 2/10/2021