Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rosylilly/at_exit
- Owner: rosylilly
- Created: 2011-12-24T06:13:10.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-25T16:16:36.000Z (about 13 years ago)
- Last Synced: 2024-12-22T13:14:50.103Z (15 days 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');
});