You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import {Readable as ReadableStream} from 'node:stream';
export interface Options {
/**
The total size to be produced by the stream in bytes.
@default Infinity
*/
readonly size?: number;
}
/**
Creates a [readable stream](https://nodejs.org/api/stream.html#stream_readable_streams) producing cryptographically strong pseudo-random data using [`crypto.randomBytes()`](https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback).
@returns By default, infinite data.
@example
```
import randomBytesReadableStream from 'random-bytes-readable-stream';