pull-replay

0.1.0 • Public • Published

pull-replay

Replay a pull-stream on demand.

pull-replay is a Sink. It will buffer all the data, and will return an object with a replay method.

Invoking the replay() method will return a Source pull-stream.

Example

var pull = require("pull-stream");
var replayStream = require("pull-replay");
 
var recorder = pull(
  pull.values([1,2,3,4]),
  replayStream()
);
 
 
pull(
  recorder.replay(),
  pull.drain(console.log)
)
 
pull(
  recorder.replay(),
  pull.drain(console.log)
)

install

With npm do:

npm install pull-replay

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i pull-replay

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • tounano