- use
pull(pull.map(mapToArray), pull.flatten()) - use pull-through
- use pull-flatmap
- use stream-to-pull-stream
back pressure will still work correctly.
make sure you use
toPull.source(readable)toPull.sink(writable)ortoPull.duplex(duplex).
generally, avoid doing this if you can because you'll loose back pressure, but if you must
- use pull-pushable
- use pull-paramap order will be preserved.
- use pull-defer
- or pull-cont
yes.
- use pull-cat
eg: if there's an error, I want to stream to stderr, otherwise stream to stdout