This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Description
Crazy idea, maybe, but I think it'd be an improvement, both in functionality and understandability.
Same API as streams2, but remove the confusing modality of flowing/old mode switch.
- Every time read() is called, and returns some data, a
data event fires.
resume() will make it call read() repeatedly. Otherwise, no change.
pause() will make it stop calling read() repeatedly.
pipe(dest) and on('data', fn) will automatically call resume().
- No switches into old-mode. There's only flowing, and paused. Streams start out paused.
Thoughts? @jclulow @tjfontaine @indutny @bnoordhuis @TooTallNate @Raynos