when you want to fire an event no matter how a process exits.
A replacement for process.exit that ensures stdio are fully drained before exiting.
Human-friendly process signals
Make unhandled promise rejections fail loudly instead of the default silent fail
Gracefully restore the CLI cursor on exit
Enter/exit a state
Run some code when the process exits
Fabulously kill processes. Cross-platform.
installs custom cleanup handlers that run on exiting node
Make unhandled promise rejections fail hard right away instead of the default silent fail
Run some code when the process exits (supports async hooks and pm2 clustering)
Gracefully exit server (Koa), database (Mongo/Mongoose), Bree job schedulers, Bull job schedulers, and custom handlers.
Cleanly exit process on EPIPE
Check if an IP is a Tor exit node
Spawn a dependent child process.
Run something when a DOM element appears and when it exits
Graceful process exit manager. allows waiting on multiple async services.
A simple and powerful async abstraction lib for easily writing Node.js code.
Gracefully shutdown your modular NodeJS application