valve
Minimal Pipeable Pull-stream
In
classic-streams,
streams push data to the next stream in the pipeline. In
new-streams,
data is pulled out of the source stream, into the destination. pull-stream
is a minimal take on streams, pull streams work great for "object" streams as
well as streams of raw text or binary data.
Quick Example
Stat some files:
pull(
values(['file1', 'file2', 'file3']),
asyncMap(fs.stat),
collect((err, array) => {
console.log(array)
})
)
License
This program is free software: you can redistribute it and/or modify it under the terms of the MPL 2.0.
This program uses third-party libraries or other resources that may be distributed under different licenses. Please refer to the specific files and/or packages for more detailed information about the authors, copyright notices, and licenses.
Acknowledgements
We are very grateful to the following people and projects for their contributions to this product:
- pull-stream minimal pipeable pull-stream (Dominic Tarr and contributors)