Skip to content

Commit 9c78df4

Browse files
committed
docs: update & clarify readme
1 parent 29e93c1 commit 9c78df4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# mime-types [![Build Status](https://travis-ci.org/expressjs/mime-types.svg?branch=master)](https://travis-ci.org/expressjs/mime-types) [![NPM version](https://badge.fury.io/js/mime-types.svg)](https://badge.fury.io/js/mime-types)
1+
# mime-types
2+
[![NPM version](https://badge.fury.io/js/mime-types.svg)](https://badge.fury.io/js/mime-types) [![Build Status](https://travis-ci.org/expressjs/mime-types.svg?branch=master)](https://travis-ci.org/expressjs/mime-types)
23

34
The ultimate javascript content-type utility.
45

@@ -8,10 +9,10 @@ The ultimate javascript content-type utility.
89
$ npm install mime-types
910
```
1011

11-
#### Similar to [mime](https://github.com/broofa/node-mime) except:
12+
#### Similar to [node-mime](https://github.com/broofa/node-mime), except:
1213

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'`.
1315
- 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'`.
1516
- Additional mime types are added such as jade and stylus. Feel free to add more!
1617
- Browser support via Browserify and Component by converting lists to JSON files.
1718

0 commit comments

Comments
 (0)