setup-kubectl/node_modules/is-stream
github-actions[bot] 7ad2aa66bb
Add node modules and new code for release (#39)
Co-authored-by: tbarnes94 <tbarnes94@users.noreply.github.com>
2022-01-05 11:26:06 -05:00
..
index.js Add node modules and new code for release (#39) 2022-01-05 11:26:06 -05:00
license Add node modules and new code for release (#39) 2022-01-05 11:26:06 -05:00
package.json Add node modules and new code for release (#39) 2022-01-05 11:26:06 -05:00
readme.md Add node modules and new code for release (#39) 2022-01-05 11:26:06 -05:00

is-stream Build Status

Check if something is a Node.js stream

Install

$ npm install --save is-stream

Usage

const fs = require('fs');
const isStream = require('is-stream');

isStream(fs.createReadStream('unicorn.png'));
//=> true

isStream({});
//=> false

API

isStream(stream)

isStream.writable(stream)

isStream.readable(stream)

isStream.duplex(stream)

isStream.transform(stream)

License

MIT © Sindre Sorhus