stream-is

0.1.2 • Public • Published

stream-is

NPM

Check is value is stream.

const is = require('stream-is');
// is(<value>)

const stream = require('stream');
is(new stream.Readable());
// true
is(new stream.Writable());
// true
is({read: '1'});
// false
is();
// false

Readme

Keywords

Package Sidebar

Install

npm i stream-is

Weekly Downloads

6

Version

0.1.2

License

MIT

Last publish

Collaborators

  • wolfram77