Illia Kozyr c722a49f64 React Project DONE | 2 lat temu | |
---|---|---|
.. | ||
index.js | 2 lat temu | |
license | 2 lat temu | |
package.json | 2 lat temu | |
readme.md | 2 lat 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