Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benmerckx/mime
Packages mime-db for haxelib
https://github.com/benmerckx/mime
Last synced: 20 days ago
JSON representation
Packages mime-db for haxelib
- Host: GitHub
- URL: https://github.com/benmerckx/mime
- Owner: benmerckx
- Created: 2016-03-12T16:30:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-13T12:49:19.000Z (over 5 years ago)
- Last Synced: 2024-10-19T16:52:21.293Z (2 months ago)
- Language: Haxe
- Homepage:
- Size: 114 KB
- Stars: 11
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mime
[![Build Status](https://travis-ci.org/benmerckx/mime.svg?branch=master)](https://travis-ci.org/benmerckx/mime)
Packages [mime-db](https://github.com/jshttp/mime-db) for haxelib
```haxe
Mime.lookup('/path/to/file.txt'); // text/plain
Mime.lookup('file.txt'); // text/plain
Mime.lookup('.TXT'); // text/plain
Mime.lookup('htm'); // text/htmlMime.extension('text/html'); // html
Mime.extension('application/pdf'); // pdfMime.db.get('text/html'); // {compressible => true, extensions => [html,htm,shtml], source => iana}
```