Skip to content

tounano/pull-replay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

Replay a pull-stream on demand.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published