Last updated 3 years ago
Was this helpful?
Check if something is a
$ npm install --save is-stream
const fs = require('fs'); const isStream = require('is-stream'); isStream(fs.createReadStream('unicorn.png')); //=> true isStream({}); //=> false
MIT ©