async-exit-hook : Run some code when the process exits (supports async hooks and pm2 clustering). You can installing async-exit-hook npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install async-exit-hook $ sudo npm install -g async-exit-hook
If want to update the async-exit-hook package execute the command as below,
$ sudo npm update async-exit-hook
Update package globally,
$ npm install -g async-exit-hook
$ sudo git clone https://github.com/rektide/async-exit-hook.git
$ sudo npm install -g ./async-exit-hook
async-exit-hook@2.0.1 /usr/lib/node_modules/async-exit-hook
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall async-exit-hook
Package Name | async-exit-hook |
Version | 2.0.1 |
Description | Run some code when the process exits (supports async hooks and pm2 clustering) |
Released Date | 2017-08-03T10:23:51.952Z |
Published by | tapppi |
How to Learn | https://www.npmjs.com/package/async-exit-hook/tutorial |