Skip to content

thenables/exit-then

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exit-then

NPM version Dependency Status License Downloads

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();
    });
  });
});

About

Execute promises before exiting a process

Resources

License

Stars

Watchers

Forks

Packages

No packages published