JSPM

pull-eager-buffer

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25343F
  • License MIT

Buffer that reads (enqueue) as much data as possible before draining (dequeuing).

Package Exports

  • pull-eager-buffer

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

Readme

Build Status

Buffer that reads (enqueue) as much data as possible before draining (dequeuing).

Useful for simulating the behaviour of unsynchronized transport channels, such as WebSockets when used in pull-ws.

Quick Example

 var buffer = require('pull-eager-buffer')
 var pull = require('pull-stream')
 
 // Prints 0,1,2,0,1,2
 pull(
   pull.count(2),
   pull.through(console.log),
   buffer,
   pull.through(console.log),
   pull.drain()
 )