JSPM

pull-through-up

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q23897F
  • License MIT

Like pull.through, but taps into requests, not responses

Package Exports

  • pull-through-up

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pull-through-up) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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