github-pages-deploy-action/node_modules/is-stream
2020-03-31 08:57:48 -04:00
..
index.js Dependencies Required 2020-01-28 00:07:56 -05:00
license Dependencies Required 2020-01-28 00:07:56 -05:00
package.json 3.4.3 Dependencies 2020-03-31 08:57:48 -04:00
readme.md Dependencies Required 2020-01-28 00:07:56 -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