Socket
Socket
Sign inDemoInstall

mime-types

Package Overview
Dependencies
1
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.26 to 2.1.27

8

HISTORY.md

@@ -0,1 +1,9 @@

2.1.27 / 2020-04-23
===================
* deps: mime-db@1.44.0
- Add charsets from IANA
- Add extension `.cjs` to `application/node`
- Add new upstream MIME types
2.1.26 / 2020-01-05

@@ -2,0 +10,0 @@ ===================

17

package.json
{
"name": "mime-types",
"description": "The ultimate javascript content-type utility.",
"version": "2.1.26",
"version": "2.1.27",
"contributors": [

@@ -17,13 +17,14 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>",

"dependencies": {
"mime-db": "1.43.0"
"mime-db": "1.44.0"
},
"devDependencies": {
"eslint": "6.8.0",
"eslint-config-standard": "14.1.0",
"eslint-plugin-import": "2.19.1",
"eslint-plugin-node": "11.0.0",
"eslint-config-standard": "14.1.1",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-markdown": "1.0.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1",
"mocha": "7.0.0",
"nyc": "15.0.0"
"mocha": "7.1.1",
"nyc": "15.0.1"
},

@@ -39,3 +40,3 @@ "files": [

"scripts": {
"lint": "eslint .",
"lint": "eslint --plugin markdown --ext js,md .",
"test": "mocha --reporter spec test/test.js",

@@ -42,0 +43,0 @@ "test-cov": "nyc --reporter=html --reporter=text npm test",

@@ -39,2 +39,4 @@ # mime-types

<!-- eslint-disable no-unused-vars -->
```js

@@ -50,7 +52,9 @@ var mime = require('mime-types')

<!-- eslint-disable no-undef -->
```js
mime.lookup('json') // 'application/json'
mime.lookup('.md') // 'text/markdown'
mime.lookup('file.html') // 'text/html'
mime.lookup('folder/file.js') // 'application/javascript'
mime.lookup('json') // 'application/json'
mime.lookup('.md') // 'text/markdown'
mime.lookup('file.html') // 'text/html'
mime.lookup('folder/file.js') // 'application/javascript'
mime.lookup('folder/.htaccess') // false

@@ -69,4 +73,6 @@

<!-- eslint-disable no-undef -->
```js
mime.contentType('markdown') // 'text/x-markdown; charset=utf-8'
mime.contentType('markdown') // 'text/x-markdown; charset=utf-8'
mime.contentType('file.json') // 'application/json; charset=utf-8'

@@ -84,2 +90,4 @@ mime.contentType('text/html') // 'text/html; charset=utf-8'

<!-- eslint-disable no-undef -->
```js

@@ -93,2 +101,4 @@ mime.extension('application/octet-stream') // 'bin'

<!-- eslint-disable no-undef -->
```js

@@ -95,0 +105,0 @@ mime.charset('text/markdown') // 'UTF-8'

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