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 of jprichardson/node-death

Account's avatar
Spawn for node.js but in a way that works regardless of which OS you're using
Account's avatar
A simple module to auto resolve module paths.
Account's avatar
testutil contains methods to aid in automatic testing of your application.
Account's avatar
get colors in your node.js console

Support the repos that depend on jprichardson/node-death

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