metapragma / valve

wip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

build status codecov license

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:

About

wip

License:Mozilla Public License 2.0


Languages

Language:TypeScript 92.9%Language:Shell 4.1%Language:JavaScript 2.9%