aboutsummaryrefslogtreecommitdiffhomepage
path: root/node_modules/mime/build/build.js
blob: ed5313e3ceba4c4b84caac1d1a47d9cc70fa53d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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));