through ported to pull-stream style
npm install pull-throughthrough ported to
pull-stream style.
Same Good Old Api, Brand New Underlying Mechanism.
`` js
var through = require('pull-through')
var ts = through(function (data) {
this.queue(data)
}, function (end) {
this.queue(null)
})
`
, don't keep a reference.` js
var WRONG = through(function (data) { WRONG.queue(data) })
`$3
` js
through(function (data) { this.queue(data) })
``Maybe this will change. this is a little more tricky with pull-streams, though.
MIT