# Interface ReadableStreamGetReaderOptions

interface ReadableStreamGetReaderOptions {
mode?: "byob";
}

- Defined in node_modules/@types/node/stream/web.d.ts:188

#####
Index

### Properties

mode?

##
Properties

### `Optional` mode

mode?: "byob"

Creates a ReadableStreamBYOBReader and locks the stream to the new reader.

This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.

- Defined in node_modules/@types/node/stream/web.d.ts:194