sniff the start of a stream (non-destructively) to detect the file type and encoding
github.com/seangarner/node-stream-mmmagic
seangarner/node-stream-mmmagic