whatwg-mimetype
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Domenic Denicola <d@domenic.me> (https://domenic.me/)", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -6,3 +6,3 @@ # Parse, serialize, and manipulate MIME types | ||
```js | ||
const MIMEType = require("content-type-parser"); | ||
const MIMEType = require("whatwg-mimetype"); | ||
@@ -28,4 +28,2 @@ const mimeType = new MIMEType(`Text/HTML;Charset="utf-8"`); | ||
If the passed string cannot be parsed as a MIME type, the `MIMEType` constructor will throw. | ||
This package's algorithms conform to those of the WHATWG [MIME Sniffing Standard](https://mimesniff.spec.whatwg.org/), and is aligned up to commit [cc81ec4](https://github.com/whatwg/mimesniff/commit/cc81ec48288944562c4554069da1d74a71e199fb). | ||
@@ -94,4 +92,4 @@ | ||
```js | ||
const parse = require("content-type-parser/parser"); | ||
const serialize = require("content-type-parser/serialize"); | ||
const parse = require("whatwg-mimetype/parser"); | ||
const serialize = require("whatwg-mimetype/serialize"); | ||
``` | ||
@@ -98,0 +96,0 @@ |
14351
97