Illia Kozyr c722a49f64 React Project DONE | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
index.js | %!s(int64=2) %!d(string=hai) anos | |
license | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos | |
readme.md | %!s(int64=2) %!d(string=hai) anos |
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