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.
v5.0.0 URL: https://unpkg.com/@ladjs/graceful@5.0.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

@lechuhuuha/graceful

Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Bree job schedulers, and custom handlers.
v3.2.3-1 URL: https://unpkg.com/@lechuhuuha/graceful@3.2.3-1/index.js
OpenBrowse Files
breeclosedatabaseexceptionexitexpressforcegracefulhandlerkillkoaladlassmongomonitornodepm2processqueueredisreloadreloadingserversighupsigintuncaughtworker