biofriction-wp-theme/node_modules/ext-list/index.js

19 lines
306 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
'use strict';
var mimeDb = require('mime-db');
module.exports = function () {
var ret = {};
Object.keys(mimeDb).forEach(function (x) {
var val = mimeDb[x];
if (val.extensions && val.extensions.length > 0) {
val.extensions.forEach(function (y) {
ret[y] = x;
});
}
});
return ret;
};