node-exit-hook

Run some code when the process exits
  https://github.com/sindresorhus/exit-hook
  0
  no reviews



Node-js module to run one or more hooks when the process exits, either because the event loop dried up, or because it received a signal (SIGINT or SIGTERM).

Node.js is an event-based server-side JavaScript engine.