Socket
Socket
Sign inDemoInstall

whatwg-mimetype

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

2

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc