Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rosylilly/at_exit

like ruby #at_exit
https://github.com/rosylilly/at_exit

Last synced: 5 days ago
JSON representation

like ruby #at_exit

Awesome Lists containing this project

README

        

# 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');
});