Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (16 sloc) 0.388 kB

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