zeachco / real-mime-type Goto Github PK
View Code? Open in Web Editor NEWMIME types (IANA media types) can be wrong when the user changes the file extension, this package reads the first bytes of the file to ensure they fit the expectations and reverts to default browser mime types when unsupported
License: GNU General Public License v3.0