-
Notifications
You must be signed in to change notification settings - Fork 0
/
mime.ts
120 lines (111 loc) · 3.82 KB
/
mime.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
export default {
'htm': 'text/html',
'html': 'text/html',
'shtml': 'text/html',
'css': 'text/css',
'xml': 'text/xml',
'gif': 'image/gif',
'jpg': 'image/jpeg',
'jpeg': 'image/jpeg',
'js': 'application/javascript',
'mjs': 'application/javascript',
'atom': 'application/atom+xml',
'rss': 'application/rss+xml',
'mml': 'text/mathml',
'txt': 'text/plain',
'jad': 'text/vnd.sun.j2me.app-descriptor ',
'wml': 'text/vnd.wap.wml',
'htc': 'text/x-component',
'png': 'image/png',
'svgz': 'image/svg+xml',
'svg': 'image/svg+xml',
'tif': 'image/tiff',
'tiff': 'image/tiff',
'wbmp': 'image/vnd.wap.wbmp',
'webp': 'image/webp',
'ico': 'image/x-icon',
'jng': 'image/x-jng',
'bmp': 'image/x-ms-bmp',
'woff': 'application/font-woff',
'jar': 'application/java-archive',
'war': 'application/java-archive',
'ear': 'application/java-archive',
'json': 'application/json',
'hqx': 'application/mac-binhex40',
'doc': 'application/msword',
'pdf': 'application/pdf',
'ps': 'application/postscript',
'eps': 'application/postscript',
'ai': 'application/postscript',
'rtf': 'application/rtf',
'm3u8': 'application/vnd.apple.mpegurl',
'kml': 'application/vnd.google-earth.kml+xml',
'kmz': 'application/vnd.google-earth.kmz',
'xls': 'application/vnd.ms-excel',
'eot': 'application/vnd.ms-fontobject',
'ppt': 'application/vnd.ms-powerpoint',
'odg': 'application/vnd.oasis.opendocument.graphics',
'odp': 'application/vnd.oasis.opendocument.presentation',
'ods': 'application/vnd.oasis.opendocument.spreadsheet',
'odt': 'application/vnd.oasis.opendocument.text',
'pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'wmlc': 'application/vnd.wap.wmlc',
'7z': 'application/x-7z-compressed',
'cco': 'application/x-cocoa',
'jardiff': 'application/x-java-archive-diff',
'jnlp': 'application/x-java-jnlp-file',
'run': 'application/x-makeself',
'pl': 'application/x-perl',
'pm': 'application/x-perl',
'prc': 'application/x-pilot',
'pdb': 'application/x-pilot',
'rar': 'application/x-rar-compressed',
'rpm': 'application/x-redhat-package-manager',
'sea': 'application/x-sea',
'swf': 'application/x-shockwave-flash',
'sit': 'application/x-stuffit',
'tcl': 'application/x-tcl',
'tk': 'application/x-tcl',
'der': 'application/x-x509-ca-cert',
'pem': 'application/x-x509-ca-cert',
'crt': 'application/x-x509-ca-cert',
'xpi': 'application/x-xpinstall',
'xhtml': 'application/xhtml+xml',
'xspf': 'application/xspf+xml',
'zip': 'application/zip',
'bin': 'application/octet-stream',
'exe': 'application/octet-stream',
'dll': 'application/octet-stream',
'deb': 'application/octet-stream',
'dmg': 'application/octet-stream',
'iso': 'application/octet-stream',
'img': 'application/octet-stream',
'msi': 'application/octet-stream',
'msp': 'application/octet-stream',
'msm': 'application/octet-stream',
'mid': 'audio/midi',
'midi': 'audio/midi',
'kar': 'audio/midi',
'mp3': 'audio/mpeg',
'ogg': 'audio/ogg',
'm4a': 'audio/x-m4a',
'ra': 'audio/x-realaudio',
'3gpp': 'video/3gpp',
'3gp': 'video/3gpp',
'ts': 'video/mp2t',
'mp4': 'video/mp4',
'mpeg': 'video/mpeg',
'mpg': 'video/mpeg',
'mov': 'video/quicktime',
'webm': 'video/webm',
'flv': 'video/x-flv',
'm4v': 'video/x-m4v',
'mng': 'video/x-mng',
'asx': 'video/x-ms-asf',
'asf': 'video/x-ms-asf',
'wmv': 'video/x-ms-wmv',
'avi': 'video/x-msvideo',
'default': 'text/plain'
} as const;