-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmime_types.py
44 lines (44 loc) · 1.67 KB
/
mime_types.py
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
mime_types = {
'py': 'text/plain', # Python
'hs': 'text/plain', # Haskell
'js': 'application/javascript', # JavaScript
'java': 'text/plain', # Java
'cpp': 'text/plain', # C++
'c': 'text/plain', # C
'h': 'text/plain', # C Header
'rb': 'text/plain', # Ruby
'sh': 'text/plain', # Shell Script
'pl': 'text/plain', # Perl
'php': 'text/plain', # PHP
'swift': 'text/plain', # Swift
'r': 'text/plain', # R
'scala': 'text/plain', # Scala
'go': 'text/plain', # Go
'rs': 'text/plain', # Rust
'kt': 'text/plain', # Kotlin
'ts': 'application/typescript', # TypeScript
'lua': 'text/plain', # Lua
'vb': 'text/plain', # Visual Basic
'clj': 'text/plain', # Clojure
'groovy': 'text/plain', # Groovy
'm': 'text/plain', # Objective-C
'cs': 'text/plain', # C#
'erl': 'text/plain', # Erlang
'fs': 'text/plain', # F#
'jl': 'text/plain', # Julia
'rkt': 'text/plain', # Racket
'elm': 'text/plain', # Elm
'nim': 'text/plain', # Nim
'purs': 'text/plain', # PureScript
'dart': 'text/plain', # Dart
'txt': 'text/plain', # Plain Text
'log': 'text/plain', # Log Files
'md': 'text/markdown', # Markdown Files
'csv': 'text/csv', # CSV Files
'ini': 'text/plain', # INI Config Files
'cfg': 'text/plain', # Config Files
'json': 'application/json', # JSON Files
'xml': 'application/xml', # XML Files
'yaml': 'text/yaml', # YAML Files
'yml': 'text/yaml', # YAML Files
}