# types.SpawnOptions.maxStreamBytes

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/ad09eaef7ffff40f510989ee0695852c44a31576/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.
