Bun.spawn()
, the child process inherits the stderr
of the spawning process. If instead you’d prefer to read and handle stderr
, set the stderr
option to "pipe"
.
To read
stderr
until the child process exits, use .text()
See Docs > API > Child processes for complete documentation.