rand-stream
v0.0.1 stream random
rand-stream
Filter a stream into random chunks.
Example
var rand = require('rand')
, split = require('split')
, fs = require('fs');
// pipe a random collection of lines to stdout
fs.createReadStream(somefile)
.pipe(split())
.pipe(rand(2))
.pipe(process.stdout)
// => line 8
// => line 3
install
With npm do:
npm install rand-stream
npm i rand-stream
Source Code
github.com/dstokes/rand-stre...Metadata
- BSD
- Whatever
- Drew Stokes
- released 7/21/2013