random-bytes-stream
v0.2.1
Published
Create random bytes streams with or not a cap size
Downloads
6
Maintainers
Readme
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