Skip to content

A simple lookup from file name/extension to MIME/media type, generated from Apache's mime.types.

License

Notifications You must be signed in to change notification settings

nikolaybobrovskiy/MimeTypes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MimeTypes

A simple lookup from file name/extension to MIME/media type, generated from Apache's mime.types.

Usage

Get the MIME/media type for a file name/extension by using the MimeTypes.GetMimeType method:

MimeTypes.GetMimeType("awesome-file.json"); // "application/json"

Installation

It's just a simple, generated .cs file! To get it, either

  • Pull the checked in version from GitHub.
  • Pull the source and generate an updated version yourself.
  • Install the NuGet package (contains the single source file).

About

A simple lookup from file name/extension to MIME/media type, generated from Apache's mime.types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 99.0%
  • C# 1.0%