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 = // returns a infinite random bytes stream in chuncks of 64Mb (max Buffer size)
Create capped bytes stream
var randStream = var nChuncks = 1 // returns nChunks * 64Mb of random bytes stream