/MimeTypesMap

Simple dictionary provides a few methods to lookup mime type/extension, generated From Apache's mime.types.

Primary LanguageC#MIT LicenseMIT

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

MIT