Skip to content
1 min read · 101 words

Interface: OpfsSpoolReaderOptions

Defined in: batteries/storage/opfs/index.ts:161

Constructor options for OpfsSpoolReader.

Properties

PropertyTypeDefault valueDescriptionDefined in
streamThresholdBytes?number10 * 1024 * 1024 (10 MiB)Byte-length threshold that switches between eager and streaming modes. Remarks - Below the threshold → eager (whole-file in memory). - At or above the threshold → streaming (line-offset index + per-line slice reads). Set to 0 to force streaming mode; set to Number.POSITIVE_INFINITY to force eager mode.batteries/storage/opfs/index.ts:173