mime 0.0.1

Media Type Database

Released 2016-04-24.

To install, run:

haxelib install mime 0.0.1

See using Haxelib in Haxelib documentation for more information.

Maintainerbenmerckx
Websitehttps://github.com/benmerckx/mime
Current version0.0.1
StatisticsInstalled 639 times
LicenseMIT
Tags cross, html, js, web

README.md

mime

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}