isa-stream
v1.1.3
Published
Ducktype if something is a Node.js compatible stream
Downloads
157
Maintainers
Readme
isa-stream
Ducktype stream matching, lets you check objects for stream identity without worrying if they're a Node.js stream object or a readable-stream.
Usage
var isaStream = require('isa-stream');
if (isaStream.Readable(mystream)) { ... }
Details
Provides Readable, Writable and Duplex matchers.