Illia Kozyr c722a49f64 React Project DONE | 2 лет назад | |
---|---|---|
.. | ||
index.js | 2 лет назад | |
license | 2 лет назад | |
package.json | 2 лет назад | |
readme.md | 2 лет назад |
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