hey-red / MimeTypesMap

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:C# 100.0%