Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 824 Bytes

README.md

File metadata and controls

37 lines (21 loc) · 824 Bytes

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