Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - sindresorhus/random-bytes-readable-stream: Creates a readable stream producing cryptographically strong pseudo-random data using `crypto.randomBytes()`
Creates a readable stream producing cryptographically strong pseudo-random data using `crypto.randomBytes()` - sindresorhus/random-bytes-readable-stream
Visit SiteGitHub - sindresorhus/random-bytes-readable-stream: Creates a readable stream producing cryptographically strong pseudo-random data using `crypto.randomBytes()`
Creates a readable stream producing cryptographically strong pseudo-random data using `crypto.randomBytes()` - sindresorhus/random-bytes-readable-stream
Powered by 0x5a.live ๐
random-bytes-readable-stream
Creates a readable stream producing cryptographically strong pseudo-random data using
crypto.randomBytes()
It's like a cross-platform fs.createReadStream('/dev/urandom')
.
Install
$ npm install random-bytes-readable-stream
Usage
import randomBytesReadableStream from 'random-bytes-readable-stream';
randomBytesReadableStream({size: 10}).pipe(process.stdout);
API
randomBytesReadableStream(options?)
Returns a stream.Readable
.
By default, it produces infinite data.
options
Type: Object
size
Type: number
Default: Infinity
The total size to be produced by the stream in bytes.
Cross Platform Resources
are all listed below.
Made with โค๏ธ
to provide different kinds of informations and resources.