Skip to main content
Bun supports the Node.js process global, including the process.on() method for listening to OS signals.

If you don’t know which signal to listen for, listen for the "beforeExit" and "exit" events.

See Utils for more utilities.