JSPM

pull-replay

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q16638F

Replay a pull-stream on demand.

Package Exports

  • pull-replay

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

Readme

#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