You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -8,10 +9,10 @@ The ultimate javascript content-type utility.
8
9
$ npm install mime-types
9
10
```
10
11
11
-
#### Similar to [mime](https://github.com/broofa/node-mime) except:
12
+
#### Similar to [node-mime](https://github.com/broofa/node-mime), except:
12
13
14
+
-__No fallbacks.__ Instead of naively returning the first available type, `mime-types` simply returns `false`, so do `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.
13
15
- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`.
14
-
- No fallbacks, so do `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.
15
16
- Additional mime types are added such as jade and stylus. Feel free to add more!
16
17
- Browser support via Browserify and Component by converting lists to JSON files.
0 commit comments