Package Exports
- mime
- mime/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mime) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A library for doing simple mime-type lookups.
var mime = require('mime');
// all these return 'text/plain'
mime.lookup('/path/to/file.txt');
mime.lookup('file.txt');
mime.lookup('.txt');
It can also look up common charsets for specific mime-types. (Useful in a web framework):
var mime = require('mime');
// returns 'UTF-8'
mime.charset.lookup('text/plain');
Please help me make sure my lookup tables are complete! Any additions will be appreciatively merged!