pull-through
through ported to pull-stream style
Last updated 10 years ago by dominictarr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pull-through 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.18                                ...           latest (10 years ago)

13 Versions

  • 1.0.18                                ...           10 years ago
  • 1.0.17                                ...           11 years ago
  • 1.0.16                                ...           11 years ago
  • 1.0.14                                ...           11 years ago
  • 1.0.12                                ...           12 years ago
  • 1.0.11                                ...           12 years ago
  • 1.0.10                                ...           13 years ago
  • 1.0.9                                ...           13 years ago
  • 1.0.8                                ...           13 years ago
  • 1.0.7                                ...           13 years ago
  • 1.0.6                                ...           13 years ago
  • 1.0.5                                ...           13 years ago
  • 1.0.4                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |