-
Notifications
You must be signed in to change notification settings - Fork 16
/
mime.node.txt
20 lines (14 loc) · 1.78 KB
/
mime.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
MIME
ALTERNATIVES ==> #See mime-types
VERSION ==> #1.2.11
#Maps between file extension, MIME types and charset.
#All EXT_STR don't have "." prepended.
MIME.lookup(PATH) #Returns MIME type MIME_STR, based on PATH extension (case-insensitive), with default
#MIME.default_type (def: "application/octet-stream")
MIME.extension(MIME_STR) #Inverse
MIME.charsets.lookup(MIME_STR)#Returns likely charset of this kind of file (or undefined)
MIME.define
({ MIM_STR: EXT_STR_ARR ... })#Extends MIME.lookup()
MIME.load(FILE) #Same with an Apach .types file, i.e. one line: MIME_STR Tab EXT_STR, with #comment