# types.SpawnOptions.maxStreamBytes

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/types.ts#L595
- **Page:** https://libtmux.org/en/ts/latest/reference/types-spawnoptions-maxstreambytes/

Stop the copy after this many bytes; [`Program.stream`](/en/ts/latest/reference/program-program-stream/) then yields them and throws [`StreamLimitError`](/en/ts/latest/reference/errors-streamlimiterror/). The program runs on. No limit by default, and the temporary directory may be memory-backed.
