discord-baymax-bot/node_modules/mime/build/build.js
2017-03-23 23:52:08 -05:00

12 lines
231 B
JavaScript

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));