File SystemProcess
Listen to OS signals
Bun supports the Node.js process global, including the process.on() method for listening to OS signals.
Get the process uptime in nanoseconds
Use Bun.nanoseconds() to get the total number of nanoseconds the bun process has been alive.
Read stderr from a child process
When you spawn a child process with Bun.spawn() , it inherits the stderr of the spawning process. To read and handle stderr instead, set the stderr option to