@ladjs/graceful
Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Bree job schedulers, and custom handlers.
async-exit-hook
Run some code when the process exits (supports async hooks and pm2 clustering)
@lechuhuuha/graceful
Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Bree job schedulers, and custom handlers.
node-graceful
Graceful process exit manager. allows waiting on multiple async services.
catch-exit
Catch Node.js exit conditions, including errors and unhandled rejections.