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

MIT

No packages depend on MimeTypesMap.

Use ignore case for file extensions

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
1.0.9 2 12/22/2024
1.0.8 3 10/09/2024
1.0.7 4 10/09/2024
1.0.4 4 10/09/2024
1.0.3 5 11/19/2022
1.0.2 4 10/09/2024
1.0.1 3 11/23/2024
1.0.0 3 11/23/2024