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 MimeMapping Question?





Info

Version: 3.0.1
Author(s): Matthew Little
Last Update: Thursday, February 15, 2024
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/zone117x/MimeMapping
NuGet Url: https://www.nuget.org/packages/MimeMapping


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

.NETStandard 1.1 .NETStandard 2.0
  • No dependencies.
netstandard2.1
  • No dependencies.
44 packages depend on this package.


Tags



STATS

must-have-score

6

avg-downloads-per-day

3462

days-since-last-release

66