mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-29 10:19:11 +00:00
12 lines
231 B
JavaScript
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));
|