UNPKG

3.68 kBJavaScriptView Raw
1/**
2 * @file mine types. from nginx conf
3 * @author errorrik[errorrik@gmail.com]
4 */
5
6
7module.exports = {
8 html : 'text/html',
9 htm : 'text/html',
10 shtml : 'text/html',
11 css : 'text/css',
12 xml : 'text/xml',
13 gif : 'image/gif',
14 jpg : 'image/jpeg',
15 jpeg : 'image/jpeg',
16 js : 'application/x-javascript',
17 json : 'application/json',
18 atom : 'application/atom+xml',
19 rss : 'application/rss+xml',
20
21 mml : 'text/mathml',
22 txt : 'text/plain',
23 jad : 'text/vnd.sun.j2me.app-descriptor',
24 wml : 'text/vnd.wap.wml',
25 htc : 'text/x-component',
26
27 png : 'image/png',
28 tif : 'image/tiff',
29 tiff : 'image/tiff',
30 wbmp : 'image/vnd.wap.wbmp',
31 ico : 'image/x-icon',
32 jng : 'image/x-jng',
33 bmp : 'image/x-ms-bmp',
34 svg : 'image/svg+xml',
35 svgz : 'image/svg+xml',
36 webp : 'image/webp',
37
38 woff : 'application/font-woff',
39 ttf : 'application/font-sfnt',
40 otf : 'application/font-sfnt',
41
42 jar : 'application/java-archive',
43 war : 'application/java-archive',
44 ear : 'application/java-archive',
45 hqx : 'application/mac-binhex40',
46 doc : 'application/msword',
47 pdf : 'application/pdf',
48 ps : 'application/postscript',
49 eps : 'application/postscript',
50 ai : 'application/postscript',
51 rtf : 'application/rtf',
52 xls : 'application/vnd.ms-excel',
53 ppt : 'application/vnd.ms-powerpoint',
54 wmlc : 'application/vnd.wap.wmlc',
55 kml : 'application/vnd.google-earth.kml+xml',
56 kmz : 'application/vnd.google-earth.kmz',
57 '7z' : 'application/x-7z-compressed',
58 cco : 'application/x-cocoa',
59 jardiff : 'application/x-java-archive-diff',
60 jnlp : 'application/x-java-jnlp-file',
61 run : 'application/x-makeself',
62 pl : 'application/x-perl',
63 pm : 'application/x-perl',
64 prc : 'application/x-pilot',
65 pdb : 'application/x-pilot',
66 rar : 'application/x-rar-compressed',
67 rpm : 'application/x-redhat-package-manager',
68 sea : 'application/x-sea',
69 swf : 'application/x-shockwave-flash',
70 sit : 'application/x-stuffit',
71 tcl : 'application/x-tcl',
72 tk : 'application/x-tcl',
73 der : 'application/x-x509-ca-cert',
74 pem : 'application/x-x509-ca-cert',
75 crt : 'application/x-x509-ca-cert',
76 xpi : 'application/x-xpinstall',
77 xhtml : 'application/xhtml+xml',
78 zip : 'application/zip',
79
80 bin : 'application/octet-stream',
81 exe : 'application/octet-stream',
82 dll : 'application/octet-stream',
83 deb : 'application/octet-stream',
84 dmg : 'application/octet-stream',
85 eot : 'application/octet-stream',
86 iso : 'application/octet-stream',
87 img : 'application/octet-stream',
88 msi : 'application/octet-stream',
89 msp : 'application/octet-stream',
90 msm : 'application/octet-stream',
91
92 mid : 'audio/midi',
93 midd : 'audio/midi',
94 kar : 'audio/midi',
95 mp3 : 'audio/mpeg',
96 ogg : 'audio/ogg',
97 m4a : 'audio/x-m4a',
98 ra : 'audio/x-realaudio',
99
100 '3gp' : 'video/3gpp',
101 '3gpp' : 'video/3gpp',
102 mp4 : 'video/mp4',
103 mpeg : 'video/mpeg',
104 mpg : 'video/mpeg',
105 mov : 'video/quicktime',
106 webm : 'video/webm',
107 flv : 'video/x-flv',
108 m4v : 'video/x-m4v',
109 mng : 'video/x-mng',
110 asx : 'video/x-ms-asf',
111 asf : 'video/x-ms-asf',
112 wmv : 'video/x-ms-wmv',
113 avi : 'video/x-msvideo'
114};