Skip to content

add process before the node intentionally/unintentionally ended

License

Notifications You must be signed in to change notification settings

TMJPEngineering/node-process-end-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-process-end-handler

add/run process before the node intentionally/unintentionally ended

Installation

npm install node-process-end-handler

Usage

  • Require the library
var processEnd = require('node-process-end-handler');
  • And include the process you want to run before the node exits.
processEnd.include(function(){
// your process here
});

That's all and you can test it by running and closing your node.

Support

  • This was tested on node version 7.*

Contributors

License

MIT

About

add process before the node intentionally/unintentionally ended

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published