Eric Foster d5378345de connection between front end and database | 6 лет назад | |
---|---|---|
.. | ||
index.js | 6 лет назад | |
license | 6 лет назад | |
package.json | 6 лет назад | |
readme.md | 6 лет назад |
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