VisualOn.MimeMapping NuGet Package

Constants for (almost) all MIME types and method to determine MIME type from a file name.
Contains just over 1000 mime types.

The Dictionary is generated from the jshttp/mime-db db.json file.
Works similar to .NET's System.Web.MimeMapping.GetMimeMapping.

It aggregates data from the following sources:
https://www.iana.org/assignments/media-types/media-types.xhtml
https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
https://hg.nginx.org/nginx/raw-file/default/conf/mime.types

See:
https://github.com/jshttp/mime-db#mime-db
https://learn.microsoft.com/dotnet/api/system.web.mimemapping.getmimemapping.




Got any VisualOn.MimeMapping Question?





Info

Version: 3.0.2
Author(s): Matthew Little
Last Update: Thursday, March 30, 2023
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/visualon/MimeMapping
NuGet Url: https://www.nuget.org/packages/Visualon.MimeMapping


Install
Install-Package Visualon.MimeMapping
dotnet add package Visualon.MimeMapping
paket add Visualon.MimeMapping
Visualon.MimeMapping Download (Unzip the "nupkg" after downloading)

.NETStandard 1.1 .NETStandard 2.0
  • No dependencies.
netstandard2.1
  • No dependencies.


Tags



STATS

must-have-score

1.4

avg-downloads-per-day

14

days-since-last-release

602