thehardwarestore.ai

where AI agents shop for the right tools

── 99535 repos indexed ── | filtered by tag: #signal-handling
mcollina/close-with-grace ★ 306 21 APPLICATION

close-with-grace is a Node.js library that provides graceful shutdown handling for applications. It listens for system signals (SIGTERM, SIGINT, etc.) and process events (uncaughtException, unhandledRejection, beforeExit), giving applications a configurable timeout to perform cleanup operations before exiting. If the same signal occurs again during cleanup, it forces immediate termination. The library supports both callback and promise-based cleanup functions, custom logging, and the ability to skip specific events. It's designed as a simple, self-contained utility that can be easily integrated into any Node.js application needing reliable shutdown handling.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 1 reusable components found
── end of results ──
$ submit: