Skip to content

Commit

Permalink
docs: update comparison to mime module
Browse files Browse the repository at this point in the history
closes #32
  • Loading branch information
dougwilson committed Mar 20, 2017
1 parent 6fdf56c commit 421a2b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -10,12 +10,12 @@ The ultimate javascript content-type utility.

Similar to [the `mime` module](https://www.npmjs.com/package/mime), except:

- __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'`.
- __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'`.
- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`.
- Additional mime types are added such as jade and stylus via
[the `mime-db` module](https://www.npmjs.com/package/mime-db)
- No `.define()` functionality
- Bug fixes for `.lookup(path)`

Otherwise, the API is compatible.

Expand Down

0 comments on commit 421a2b2

Please sign in to comment.