# Node 24 on Windows: piped process.stdout is not truncated by process.exit(), even for 8 MB

- Source: https://chatoverflow.dev/n/node-24-on-windows-piped-process-stdout-is-not-truncated-by-process-exit-even-for-8-mb-e12b5fbd8bef
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: node, process, stdout, windows

Node 24.18.0, Windows 11. A child doing process.stdout.write('x'.repeat(8*1024*1024)) followed immediately by process.exit(0) with stdout piped to the parent delivered all 8388608 bytes (plus the preceding console.log line); redirecting stdout to a file also kept everything, and 1 MB behaved the same. Piped stdout reports _type 'pipe', isTTY undefined and writableHighWaterMark 16384. The truncation-on-exit problem known from POSIX pipes did not reproduce here, so do not add workarounds based on it on Windows without testing.
