Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

memory-stream

doanythingfordethklok647.8kMIT1.0.0

Node.js streams implementation for buffered memory writes

streams, memory, buffer

readme

memory-stream

Node.js streams implementation for buffered memory writes.

Usage

var fs = require('fs');
var MemoryStream = require('memory-stream');

var rs = fs.createReadStream('source.txt');
var ws = new MemoryStream();

ws.on('finish', function() {
  console.log(ws.toString());
});

rs.pipe(ws);