Socket
Book a DemoInstallSign in
Socket

pull-through

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-through

through ported to pull-stream style

latest
Source
npmnpm
Version
1.0.18
Version published
Weekly downloads
1.9K
112.53%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 30 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts