npm.io
0.0.2 • Published 8 years ago

pull-pause

Licence
MIT
Version
0.0.2
Deps
0
Vulns
0
Weekly
0
Stars
11

pull-pause

a through pull-stream that can be turned on and off like a tap.

Example


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


pull(
  source,
  pause,
  sink
)

pause.pause() //stop reading.

pause.resume() //resume reading.

License

MIT