This file was generated automatically based on this two sources:
- /etc/nginx/mime.types
- http://www.garykessler.net/library/file_sigs.html
This is a JSON object by following structure:
[string ext] : {
signs: [sign]
mime: string
}
A sign
is a string in this format (without any space):
[int o],[hex s]
where o
is x byte offset
(Commonly zero)
MP4:
[4 byte offset]
66 74 79 70 69 73 6F 6D
becomes:
4,6674797069736F6D
This is extremely handy! I'm going to use it in my project. I will credit you however you want; I intend to mention you/link to this gist in the
README.md
by default. Let me know.