throo

1.0.1 • Public • Published

throo

through2 for people that can't take this anymore.

The API is just like through2, but push is passed as an argument so you don't need to deal with function context.

Install

npm install throo through2

throo will use whatever through2@^2.0.0 you have installed.

Usage

const through = require('throo')
 
process.stdin
  .pipe(through(
    (push, chunk, enc, cb) => {
      stream.push(chunk)
      //etc
    },
    (push, cb) => {
 
    }
  ))
  .pipe(process.stdout)

API

See through2.

Dependents (12)

Package Sidebar

Install

npm i throo

Weekly Downloads

182

Version

1.0.1

License

CC0-1.0

Last publish

Collaborators

  • m59