samples/dapr-distributed-calendar/node_modules/is-stream
Jayesh Sharma 81ea7dc01e
add new sample (#41)
* add project description in table

* add project files

* add table
2021-01-11 12:16:14 -08:00
..
index.js add new sample (#41) 2021-01-11 12:16:14 -08:00
license add new sample (#41) 2021-01-11 12:16:14 -08:00
package.json add new sample (#41) 2021-01-11 12:16:14 -08:00
readme.md add new sample (#41) 2021-01-11 12:16:14 -08:00

readme.md

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