1.2.0 • Published 7 years ago

ezmime v1.2.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

ezmime

Very clean and fast filename-to-MIME library

Install

Install with npm:

npm install ezmime

Usage

Ezmime will convert strings such as ".html", "html" or "index.html" to the MIME type returning "text/html" for all there requests. You can see ezmime usage below:

const ezmime = require('ezmime');
ezmime.see('/var/www/html/index.html') // "text/html"
ezmime.see('kick.mp3') // "audio/mpeg"
ezmime.see('.css') // "text/css"
ezmime.see('js') // "application/javascript"
1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.0

7 years ago