mime

Media Type Database
https://github.com/benmerckx/mime

To install, run:

haxelib install mime 0.1.2 

See using Haxelib in Haxelib documentation for more information.

README.md

mime

Build Status

Packages mime-db for haxelib

Mime.lookup('/path/to/file.txt');   // text/plain
Mime.lookup('file.txt');            // text/plain
Mime.lookup('.TXT');                // text/plain
Mime.lookup('htm');                 // text/html

Mime.extension('text/html');        // html
Mime.extension('application/pdf');  // pdf

Mime.db.get('text/html');           // {compressible => true, extensions => [html,htm,shtml], source => iana}				
Contributors
benmerckx
Version
0.1.2
Published
6 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub