pm2-exit-hook
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "pm2-exit-hook", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Run some code when the process exits (supports pm2 clustering)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -6,7 +6,10 @@ # pm2-exit-hook | ||
The `process.on('exit')` event doesn't catch all the ways a process can exit. You can also | ||
include async handlers. | ||
The `process.on('exit')` event doesn't catch all the ways a process can exit. This module catches: | ||
Useful for cleaning up. | ||
* process SIGINT, SIGTERM and SIGHUP signals | ||
* process beforeExit and exit events | ||
* PM2 clustering process shutdown message ([PM2 graceful reload](http://pm2.keymetrics.io/docs/usage/cluster-mode/#graceful-reload)) | ||
Useful for cleaning up. You can also include async handlers. | ||
Forked from [exit-hook](https://npmjs.com/package/exit-hook) Supports pm2 cluster mode. | ||
@@ -53,2 +56,3 @@ | ||
//=> 'exiting 2' | ||
//=> 'exiting 3' | ||
``` | ||
@@ -55,0 +59,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
62
0
3584