file-type-stream
Wrapper over file-type that makes using it with streams easier.
Install
npm install --save file-type-stream
Requires Node v6+
Usage
fileTypeStream(callback)
See ./test directory for usage examples.
// ...// s3Client = ....// ... const through = readStream
The code above can be written a bit more intuitively with async/await:
// ...// s3Client = ....// ... const upload = async { const Body = const mime = await { rs } const response = client console}