random-bytes-stream

0.2.1 • Public • Published

random-bytes-stream

Create random bytes streams with or not a cap size

note: cap is a number of 64Mb blobs

Usage

Install

$ npm i random-bytes-stream --save

Create infinite bytes stream

var randStream = require('random-bytes-stream')
 
randStream() // returns a infinite random bytes stream in chuncks of 64Mb (max Buffer size)

Create capped bytes stream

var randStream = require('random-bytes-stream')
 
var nChuncks = 1
 
randStream(nChuncks) // returns nChunks * 64Mb of random bytes stream

Package Sidebar

Install

npm i random-bytes-stream

Weekly Downloads

2

Version

0.2.1

License

MIT

Last publish

Collaborators

  • daviddias