pull-through-up

1.0.0 • Public • Published

pull-through-up

Like pull.through, this is a pass through stream that doesn't change the value, but allows you to inspect the "pull" request, not the "pull" response.

npm install --save pull-through-up

Usage

const pull = require('pull-stream')
const throughUp = require('pull-through-up')

pull(
  pull.values(['a','b']),
  throughUp(
    () => console.log('request is being made'), // operation
    () => console.log('end request')), // on end
  pull.drain(x => console.log(x)
)

License

MIT

Package Sidebar

Install

npm i pull-through-up

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.5 kB

Total Files

4

Last publish

Collaborators

  • staltz