This library provides a simple way to get the mime type of a file extension or the file extension of a mime type.
dotnet add package Frank.MimeTypes
Install-Package Frank.MimeTypes
<PackageReference Include="Frank.MimeTypes" Version="*" />
using Frank.MimeTypes;
var mimeType = MimeTypes.GetMimeType("txt");
var fileExtension = MimeTypes.GetFileExtension("text/plain");
This project is licensed under the MIT License - see the LICENSE file for details