I'm looking for a client side JavaScript mimetype library similar to Python's mimetypes, or the 'mime' Node module.
I have two related use cases in mind. First is for validating the mimetype in an <input type="file"/>
element. The second is for validating a bunch of filenames that come reading the file entries of a ZIP file via js-unzip and Cheeso's unzip utility.