Returns the mimetype of given URI
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json
table.js
test.js

README.md

mime-of

Returns the mimetype of given URI

mimeOf = require('mime-of')

mimeOf('foo.mp4')
// => video/mp4

mimeOf('foo.ogg')
// => audio/ogg

Install

$ npm install mime-of