file-type
Detect the file type of a file, stream, or data
node-poppler
Asynchronous node.js wrapper for the Poppler PDF rendering library
@sgtpooki/file-type
An *Ackchyually* browser compatible file-type hacky replacement of the `file-type` package. Forked from https://github.com/sindresorhus/file-type