x-memory-stream

0.0.1 • Public • Published

memory-stream

Build Status

Passing stream that remembers data flowing through it. Passed data can be accessed at any time by by #remember method.

Usage

memory = require "x-memory-stream"
 
# Creates memory stream which will increment internal buffer by 10Kb step 
= memory 10 * 1024 # Default increment size is 100Kb 
 
a.pipe( m ).pipe( b ).on "end"->
  # Get remembered data 
  data = m.remember( )

Readme

Keywords

Package Sidebar

Install

npm i x-memory-stream

Weekly Downloads

24

Version

0.0.1

License

MIT

Last publish

Collaborators

  • lazutkin