Muqriz 48f16bfc3e initail first | 4 miesięcy temu | |
---|---|---|
.. | ||
index.js | 4 miesięcy temu | |
license | 4 miesięcy temu | |
package.json | 4 miesięcy temu | |
readme.md | 4 miesięcy temu |
Check if something is a Node.js stream
$ npm install --save is-stream
const fs = require('fs');
const isStream = require('is-stream');
isStream(fs.createReadStream('unicorn.png'));
//=> true
isStream({});
//=> false
MIT © Sindre Sorhus