like ruby #at_exit
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.markdown
index.js
package.json

README.markdown

atExit

like ruby #at_exit

usage

var at_exit = require('at-exit');
at_exit(function() {
  console.log("at exit!");
});



var express = require('express'),
  app = express.createServer(),
  at_exit = require('at-exit');

at_exit(function() {
  app.listen(3000);
});

app.get('/', function(req, res) {
  res.send('example');
});