PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/mime/build/build.js

https://bitbucket.org/coleman333/smartsite
JavaScript | 11 lines | 9 code | 2 blank | 0 comment | 1 complexity | df1741e5fe8363f79b411866dff1d913 MD5 | raw file
 1var db = require('mime-db');
 2
 3var mapByType = {};
 4Object.keys(db).forEach(function(key) {
 5  var extensions = db[key].extensions;
 6  if (extensions) {
 7    mapByType[key] = extensions;
 8  }
 9});
10
11console.log(JSON.stringify(mapByType));