Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

pull-pair

simplest duplex pull stream.

A duplex pair of streams {source, sink})

such that a reading everything that the sink reads the source outputs.

var pull = require('pull-stream')
var pair = require('pull-pair')

var p = pair()

pull(pull.values([1, 2, 3]), p.sink)
pull(p.source, pull.collect(function (err, values) {
  if(err) throw err
  console.log(values) //[1, 2, 3]
}))

License

MIT

Something went wrong with that request. Please try again.