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
@hyperreal-gopher Hi! Thanks for the report, I updated the gist, please let me know if you found any other issues!
And as for the credit, it doesn't need to be on the README put it wherever it feels right, I'd personally put the link as a comment in the source code where I'm loading the file, but it's me :)
And have a great time working on your awesome project!