exit-then

1.4.0 • Public • Published

exit-then

NPM version Dependency Status License Downloads Gittip

Execute promises before exiting a process. Useful for cleaning up a process right before it quits.

API

var fns = require('exit-then');
 
fns.push(function () {
  return new Promise(function (resolve) {
    doSomethingAsync(function () {
      resolve();
    });
  });
});

Package Sidebar

Install

npm i exit-then

Weekly Downloads

0

Version

1.4.0

License

MIT

Last publish

Collaborators

  • jongleberry