https://github.com/rosylilly/at_exit
like ruby #at_exit
https://github.com/rosylilly/at_exit
Last synced: 4 months ago
JSON representation
like ruby #at_exit
- Host: GitHub
- URL: https://github.com/rosylilly/at_exit
- Owner: rosylilly
- Created: 2011-12-24T06:13:10.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-25T16:16:36.000Z (over 13 years ago)
- Last Synced: 2025-02-13T02:55:23.532Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 95.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
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');
});