jpsp91 07dd8af64f root page set | 6 gadus atpakaļ | |
---|---|---|
.. | ||
index.js | 6 gadus atpakaļ | |
license | 6 gadus atpakaļ | |
package.json | 6 gadus atpakaļ | |
readme.md | 6 gadus atpakaļ |
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