Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
like ruby #at_exit
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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');
});
Something went wrong with that request. Please try again.