MimeTypesMap 1.0.9
MimeTypesMap
Simple dictionary provides a few methods to lookup mime type/extension, generated from Apache's mime.types.
Install
via NuGet:
PM> Install-Package MimeTypesMap
Usage
using HeyRed.Mime;
MimeTypesMap.GetExtension("image/jpeg"); // => jpeg
MimeTypesMap.GetMimeType("filename.jpeg"); // => image/jpeg
MimeTypesMap.AddOrUpdate(string mime, string extension);
License
No packages depend on MimeTypesMap.
Use ignore case for file extensions
.NET Standard 2.0
- No dependencies.