Socket
Socket
Sign inDemoInstall

ext-list

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.2 to 3.0.0

16

index.js
'use strict';
var mimeDb = require('mime-db');
const mimeDb = require('mime-db');
module.exports = function () {
var ret = {};
module.exports = () => {
const ret = {};
Object.keys(mimeDb).forEach(function (x) {
var val = mimeDb[x];
for (const x of Object.keys(mimeDb)) {
const val = mimeDb[x];
if (val.extensions && val.extensions.length > 0) {
val.extensions.forEach(function (y) {
for (const y of val.extensions) {
ret[y] = x;
});
}
}
});
}
return ret;
};
{
"name": "ext-list",
"version": "2.2.2",
"version": "3.0.0",
"description": "List of known file extensions and their MIME types",

@@ -13,3 +13,3 @@ "license": "MIT",

"engines": {
"node": ">=0.10.0"
"node": ">=4"
},

@@ -16,0 +16,0 @@ "scripts": {

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