New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pm2-exit-hook

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2-exit-hook - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

.npmignore

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc