Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Sep 13, 2017
1 parent efc8138 commit f7a2f74
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 4 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

A comprehensive, compact MIME type module.

This is version `2.x`. Docs for the previous version, `1.4.0`, may be found
[here](https://github.com/broofa/node-mime/tree/v1.4.0).
## Version 2 Notes

Version 2 is a breaking change from 1.x, as the semver implies. Specifically:

* ES6 support required (requires Node 6+)
* `lookup()` renamed to `getType()`
* `extension()` renamed to `getExtension()`
* `charset()` and `load()` methods have been removed

If you need the legacy version of this module for any reason, please `npm install mime@^1`. Version 1 docs may be found [here](https://github.com/broofa/node-mime/tree/v1.4.0).

## Install - NPM
```
Expand Down
237 changes: 237 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"github-release-notes": "0.9.0",
"mime-db": "1.30.0",
"mime-types": "2.1.15",
"mocha": "3.5.3",
"runmd": "0.1.8"
},
"scripts": {
Expand Down
12 changes: 10 additions & 2 deletions src/README_js.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ runmd.onRequire = path => path.replace(/^mime/, '..');

A comprehensive, compact MIME type module.

This is version `2.x`. Docs for the previous version, `1.4.0`, may be found
[here](https://github.com/broofa/node-mime/tree/v1.4.0).
## Version 2 Notes

Version 2 is a breaking change from 1.x, as the semver implies. Specifically:

* ES6 support required (requires Node 6+)
* `lookup()` renamed to `getType()`
* `extension()` renamed to `getExtension()`
* `charset()` and `load()` methods have been removed

If you need the legacy version of this module for any reason, please `npm install mime@^1`. Version 1 docs may be found [here](https://github.com/broofa/node-mime/tree/v1.4.0).

## Install - NPM
```
Expand Down

0 comments on commit f7a2f74

Please sign in to comment.