Files
Steve Gill 3131f81f0b
main.yml / A job to say hello (push) Failing after 2s
updated action to work with slack
2020-10-28 16:44:33 -07:00
..
2020-10-28 16:44:33 -07:00
2020-10-28 16:44:33 -07:00
2020-10-28 16:44:33 -07:00
2020-10-28 16:44:33 -07: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