dominictarr / through

simple way to create a ReadableWritable stream that works
Other
669 stars 64 forks source link

.unpipe is not a function #46

Closed danielkwinsor closed 6 years ago

danielkwinsor commented 7 years ago

Hi,

A Readable stream should have unpipe However, I get the error that .unpipe is not a function, even though .pipe does actually work. So it seems like this is 'readable', not 'Readable'. Any chance of supporting this and any other Readable API function?

version 2.6.3

dominictarr commented 7 years ago

That's because this is a classic stream (see my article on the history of streams)

if you need streams2 features, there is https://www.npmjs.com/package/through2 personally, I've switched entirely to https://github.com/pull-stream which are massively simpler than node streams.

MutableLoss commented 6 years ago

This feels like information that could be added to the Introduction in the Documentation, no?

Either way, I'm glad I ran across this while looking for an answer to an issue (which this explains).

dominictarr commented 6 years ago

I would be happy to merge PR for documentation on this