https://github.com/willscott/venstream
Ven-diagram-esque Intersection & Union transformation for node.js streams
https://github.com/willscott/venstream
Last synced: 3 months ago
JSON representation
Ven-diagram-esque Intersection & Union transformation for node.js streams
- Host: GitHub
- URL: https://github.com/willscott/venstream
- Owner: willscott
- Created: 2015-04-20T20:34:26.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-20T20:35:35.000Z (about 11 years ago)
- Last Synced: 2025-09-29T19:57:46.474Z (9 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ven Stream
==========
Installation
------------
```
npm install venstream
```
Usage
-----
```javascript
var file1 = fs.createReadStream('...');
var file2 = fs.createReadStream('...');
var ven = require('venstream');
var union = fs.createWriteStream('union.out');
var handles = ven(union);
file1.pipe(handles[0]).pipe(fs.createWriteStream('file1only.out');
file2.pipe(handles[1]).pipe(fs.createWriteStream('file2only.out');
union.on('finish', function () {
console.log('Stream Processing Finished!');
});
```