Skip to content

Logs synchronization events inside a pull-stream.

License

Notifications You must be signed in to change notification settings

elavoie/pull-probe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pull-probe

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

About

Logs synchronization events inside a pull-stream.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published