Search results
56 packages found
Execute a callback when the process exits, passing the exit code (ESM/CJS)
Agnostic JS framework that empowers devs to focus on quickly building apps, rather than focusing on application config, health-checks, application structure, or architecture to build a 12 factor app in Docker.
- app
- spawnpoint
- framework
- events
- errors
- docker
- graceful
- shutdown
- sigint
- sigkill
- infrastructure
- structure
- config
- management
- View more
Yet another POSIX signal handler.
Launch a console command in a newly created foreground process group
Stop hapi gracefully on SIGINT and SIGTERM
Graceful process exit manager. allows waiting on multiple async services.
- graceful
- exit
- signal
- sigterm
- SIGINT
- SIGHUP
- shutdown
- graceful exit
- uncaught
- uncaughtException
- unhandledRejection
- terminate
- stop
- process
Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Bree job schedulers, and custom handlers.
Kill procesess gracefully with retries, signals and all children
Gracefully terminates HTTP servers in Node.js
Graceful process exit manager. allows waiting on multiple async services.
- graceful
- exit
- signal
- sigterm
- SIGINT
- SIGHUP
- shutdown
- graceful exit
- uncaught
- uncaughtException
- unhandledRejection
- terminate
- stop
- process
Gracefully shutdown your modular NodeJS application
Run some code when the process exits (supports async hooks and pm2 clustering)
CJS version: Human-friendly process signals
- signal
- signals
- handlers
- error-handling
- errors
- interrupts
- sigterm
- sigint
- irq
- process
- exit
- exit-code
- status
- operating-system
- View more
Catch Node.js exit conditions, including errors and unhandled rejections.
The one true way of terminating services
Generate ctrl-c (or ctrl-break) events on Windows by calling `Kernel32::GenerateConsoleCtrlEvent()`
- windows
- GenerateConsoleCtrlEvent
- generate
- console
- ctrl
- event
- c
- ctrl+c
- ctrl-c
- CTRL_C_EVENT
- break
- ctrl+break
- ctrl-break
- CTRL_BREAK_EVENT
- View more
Helper for initializing and deinitializing an app
Support graceful stop in your app
Run arbitrary functions & commands asynchronously before process termination, programatically or via CLI
A simple, enhanced replacement for `npm run-script <command> [-- <args>...]`