build.js 231 B

1234567891011
  1. var db = require('mime-db');
  2. var mapByType = {};
  3. Object.keys(db).forEach(function(key) {
  4. var extensions = db[key].extensions;
  5. if (extensions) {
  6. mapByType[key] = extensions;
  7. }
  8. });
  9. console.log(JSON.stringify(mapByType));