JSPM

pull-probe

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

Logs synchronization events inside a pull-stream.

Package Exports

  • pull-probe

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-probe) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Logs synchronization events inside a pull-stream. Follows the convention of the debug module for activating the output.

Useful for debugging synchronization bugs in pull-stream modules in development and trace the behaviour of tests.

Prints the 'source(abort, cb)' when its source is read, and prints 'sink(err, data)' when it receives a value on its sink. 'cb(err, data)' is called immediately after the sink received a value.

Quick Example

var pull = require('pull-stream')
var probe = require('pull-probe')

pull(
  pull.count(3),
  probe('quick-example'),
  pull.drain()
)

// usage: DEBUG=quick-example node quick-example.js