async-exit-hook

Run some code when the process exits (supports async hooks and pm2 clustering)
v2.0.1 URL: https://unpkg.com/async-exit-hook@2.0.1/index.js
OpenBrowse Files
exitquitprocesshookgracefulhandlershutdownsigtermsigintsighuppm2clusterchildreloadasyncterminatekillstopevent

@ladjs/graceful

Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Bree job schedulers, and custom handlers.
v4.2.0 URL: https://unpkg.com/@ladjs/graceful@4.2.0/index.js
OpenBrowse Files
breeclosedatabaseexceptionexitexpressforcegracefulhandlerkillkoaladlassmongomonitornodepm2processqueueredisreloadreloadingserversighupsigintuncaughtworker

exit-hook-plus

Do something before the program exits or when the program crashes!
v0.2.0 URL: https://unpkg.com/exit-hook-plus@0.2.0/dist/index.js
OpenBrowse Files
exithookasynchandlersigtermsigintsighupterminateshutdownkillstop

async-exit-hook-improved

Run some code when the process exits (supports async hooks and pm2 clustering)
v2.0.3 URL: https://unpkg.com/async-exit-hook-improved@2.0.3/index.js
OpenBrowse Files
exitquitprocesshookgracefulhandlershutdownsigtermsigintsighuppm2clusterchildreloadasyncterminatekillstopevent

signalmanager

ES6 JS class to capture exit signals and specify callbacks to accept or deny them
v1.0.8 URL: https://unpkg.com/signalmanager@1.0.8/index.js
OpenBrowse Files
signalmanagersignalsigintsigtermsigkillsignal handlersignal callbackcallbacksighupexit