56 packages found
Terminate a Node.js Process based on the Process ID
Gracefully restore the CLI cursor on exit
Gracefully cleanup when termination signals are sent to your process.
Run some code when the process exits
Minimal async jobs utility library, with streams support
Run some code when the process exits (supports async hooks and pm2 clustering)
Fabulously kill processes. Cross-platform.
Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.
Process thousands of asynchronous or synchronous jobs, concurrently or sequentially, safely and efficiently, without creating thousands of closures.
- abort
- array
- async
- asynchronous
- callback
- cb
- closure
- concurrency
- concurrent
- control
- control flow
- each
- error
- flow
- View more
Zero dependencies, gracefully terminates HTTP(S) server.
Easily add listeners to signals sent to the running process
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
onDeath() will register callbacks to call right before your Node.js program terminates.
Execute custom cleanup function before Node.js exits
Execute a callback when the process exits, passing the exit code (ESM/CJS)
Simple wrapper for process.exit
killport-npm package would take a port number as an argument and then find the process using that port. After identifying the process, it would terminate it, effectively "killing" the port and freeing it up for other processes to use.
All in one solution to gracefully shutdown your application through a simple delayed shutdown process. Also allows code reloading and program restarting, instead of using a not so graceful process manager line nodemon.
#### 介绍 `circuit-run`是一个和`co`库或者`koa`的洋葱模型有着类似功能的开源代码,和他们不同的是,`circuit-run`提供了中断功能。也就是说,当某一个中间件出现问题想要终止整个流程的时候,可以使用`circuit-run`的`terminate`函数来终止洋葱模型的进行。当然,`circuit-run`是可以在浏览器运行的,其并不依赖于`node.js`环境。
Implements navigator.app.exitApp on Android, iOS