Last active
May 14, 2017 11:01
-
-
Save ebraminio/a2e4338ce29d71156ea1703f5aaec4b6 to your computer and use it in GitHub Desktop.
nginx mime types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://hg.nginx.org/nginx/raw-file/default/conf/mime.types | |
var result = {}; | |
$('pre').textContent.split('\n').filter(x => /;/.exec(x)).map(x => x.trim().replace(';', '').split(/ +/)).forEach(x => x.slice(1).forEach(y => result[y] = x[0])); | |
copy(JSON.stringify(result)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment