0.0.1 • Published 9 years ago
random-dump v0.0.1
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-dumpusage
Dump 10 bytes of random data to stdout:
random-dump 10Dump 1mb of data to a file:
random-dump 1mb randomdump.file0.0.1
9 years ago