Skip to content

lazdmx/memory-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. Default step is ~100Kb
m = memory 10 * 1024

a.pipe( m ).pipe( b ).on "finish", ->
  # Get remembered data
  data = m.remember( )

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published