pull-through

1.0.18 • Public • Published

pull-through

through ported to pull-stream style.

Example

Same Good Old Api, Brand New Underlying Mechanism.

var through = require('pull-through')
 
var ts = through(function (data) {
  this.queue(data)
}, function (end) {
  this.queue(null)
})

Incompatibility

DON'T

use var self = this, don't keep a reference.

var WRONG = through(function (data) { WRONG.queue(data) })

DO

through(function (data) { this.queue(data) })

Maybe this will change. this is a little more tricky with pull-streams, though.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.18
    6,136
    • latest

Version History

Package Sidebar

Install

npm i pull-through

Weekly Downloads

1,541

Version

1.0.18

License

MIT

Last publish

Collaborators

  • dominictarr