1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-04-16 11:28:18 +00:00
MatteZ02 5eb0264906 fix
2019-05-30 12:06:47 +03:00
..
fix
2019-05-30 12:06:47 +03:00
fix
2019-05-30 12:06:47 +03:00
fix
2019-05-30 12:06:47 +03:00
fix
2019-05-30 12:06:47 +03: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