I've got a MIME type, and I want the corresponding media type.
For instance, PDF files can have many mime types:
- application/pdf
- application/x-pdf
- application/acrobat
- applications/vnd.pdf
- application/x-download
- application/download
- text/pdf
- text/x-pdf
- (maybe more?)
I'm looking for a JavaScript library that would tell me that it's a PDF file if I give it any of these MIME types. Is there anything like it?
Any help much appreciated