Skip to content

dstokes/rand-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rand-stream

Filter a stream into random chunks.

Build Status
NPM

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

About

Return random chunks from a stream

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published