Skip to content

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

License

Notifications You must be signed in to change notification settings

AnReZa/MimeTypesMap

 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%