curtain-down
Register functions to run when node exits with npm install curtain-down
.
const curtain = ;const applaud = consolelog;const boo = consolelog;// Register functions to run when SIGTERM or SIGKILL are received:curtain; // every time;curtain; // just once.// You can also cancel…curtain; // a particular function,curtain; // or all of them.