distribute-stream
v1.0.0
Published
Distribute chunks between multiple write streams
Downloads
1
Readme
distribute-stream
Distribute chunks between multiple write streams
npm install distribute-stream
Example
var fs = require('fs')
var split = require('split2')
var distributeStream = require('./')
fs.createReadStream('path/to/line-delimited.json')
.pipe(split())
.pipe(distributeStream([
someWriteStream,
someOtherWriteStream
]))
License
MIT