jprichardson

jprichardson/node-death

Gracefully cleanup when termination signals are sent to your process.

JavaScript
183
7
MIT License

The **node‑death** package provides a simple way to listen for termination signals (such as SIGINT, SIGTERM, SIGQUIT, and optionally uncaught exceptions or SIGHUP) and run a single cleanup callback before your Node.js process exits. It’s ideal for developers who want graceful shutdown logic—like closing connections or flushing data—without manually wiring multiple `process.on` handlers. The module is lightweight and works on POSIX systems, making it useful for any application that needs reliable, one‑place termination handling.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

jprichardson's profile
jprichardson
18 contributions
rohanorton's profile
rohanorton
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet