tra-analysis/website/node_modules/mime/build/build.js

12 lines
231 B
JavaScript
Raw Normal View History

2019-01-06 19:14:45 +00:00
var db = require('mime-db');
var mapByType = {};
Object.keys(db).forEach(function(key) {
var extensions = db[key].extensions;
if (extensions) {
mapByType[key] = extensions;
}
});
console.log(JSON.stringify(mapByType));