tiny-mime-lookup
v1.0.0
Published
Lookup a MIME type from a file name or path.
Downloads
84
Readme
tiny-mime-lookup
Lookup a mime type from a file name or path.
var lookup = require('tiny-mime-lookup')
lookup('foo.txt')
// returns text/plain
Inspired by:
- https://github.com/jshttp/mime-types
- https://github.com/jshttp/mime-db
- https://github.com/broofa/node-mime