0.0.1 • Published 8 years ago

random-dump v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

random-dump

Source random data from /dev/random.

usage

node

import random from 'random-dump'

const readableStream = random(1)
readableStream.pipe(process.stdout)
// writes 1 random byte to stdout

random(10, (err, buff) => {
  // buff is Buffer of 10 random bytes
})

cli

installation

npm i -g random-dump

usage

Dump 10 bytes of random data to stdout:

random-dump 10

Dump 1mb of data to a file:

random-dump 1mb randomdump.file