From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- node_modules/mime/src/README_js.md | 179 +++++++++++++++++++++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 node_modules/mime/src/README_js.md (limited to 'node_modules/mime/src/README_js.md') diff --git a/node_modules/mime/src/README_js.md b/node_modules/mime/src/README_js.md new file mode 100644 index 00000000..f38aca01 --- /dev/null +++ b/node_modules/mime/src/README_js.md @@ -0,0 +1,179 @@ +```javascript --hide +runmd.onRequire = path => path.replace(/^mime/, '..'); +``` +# Mime + +A comprehensive, compact MIME type module. + +## Version 2 Notes + +Version 2 is a breaking change from 1.x as the semver implies. Specifically: + +* `lookup()` renamed to `getType()` +* `extension()` renamed to `getExtension()` +* `charset()` and `load()` methods have been removed + +If you prefer the legacy version of this module please `npm install mime@^1`. Version 1 docs may be found [here](https://github.com/broofa/node-mime/tree/v1.4.0). + +## Install + +### NPM +``` +npm install mime +``` + +### Browser + +It is recommended that you use a bundler such as +[webpack](https://webpack.github.io/) or [browserify](http://browserify.org/) to +package your code. However, browser-ready versions are available via wzrd.in. +E.g. For the full version: + + + +