Skip to content

wagesj45/MimeTypeList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MimeTypeList

Provides a hard-coded collection of file extension and mime type mapping. This project was inspired by samuelneff/MimeTypeMap. This project uses the data from that project to create classes with members for each extension and mime type for lookups.

You can access the values with the FileExtensions and MimeTypes static classes:

FileExtensions._ruleset
MimeTypes.application.onenote

Installation

You can install MimeTypeList from Nuget.org on its package page.

Usage

After installation MimeTypeList, include the following using statement in your class:

using MimeTypeList;

Getting Extensions

Console.WriteLine(MimeTypes.application.onenote); // ".one"

Getting Mime Types

Console.WriteLine(FileExtensions._ruleset); // "application/xml"

Donations

Donate with Trans Pay

If you would like to donate to the development of MimeTypeList, please direct you donation to my patron page (powered by Stripe) or directly via my PayPal.Me page. You can also donate Ethereum to my wallet. Image

About

A list of mime types provided as class members.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages