Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/panthershark/memory-stream

Node.js streams implementation for buffered memory writes.
https://github.com/panthershark/memory-stream

Last synced: about 2 months ago
JSON representation

Node.js streams implementation for buffered memory writes.

Awesome Lists containing this project

README

        

memory-stream
=============

Node.js streams implementation for buffered memory writes.

# Usage

```javascript
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);
```