1.0.0 • Published 6 years ago
pull-through-up v1.0.0
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
1.0.0
6 years ago