memory-stream
v1.0.0
Published
Node.js streams implementation for buffered memory writes
Downloads
747,313
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);