@purinton/signals
Graceful shutdown signal handler utility for Node.js (ESM and CommonJS)
on-exit-leak-free
Execute a function on exit without leaking memory, allowing all objects to be garbage collected
async-exit-hook
Run some code when the process exits (supports async hooks and pm2 clustering)
exit-signal
A Node.js library for handling graceful process exits and shutdown signals.