0.2.1 • Published 9 years ago

random-bytes-stream v0.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

random-bytes-stream

npm.io npm.io

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