1.0.0 • Published 11 years ago
express-server-with-commands v1.0.0
express-server-with-commands
A wrapper for Express to provide start, stop, and restart functionality.
Written out of annoyance and to avoid future copy/paste errors.
Usage
npm install express-server-with-commandsexpress = require('express-server-with-commands');
// Example setup
asyncOperation(function (results) {
express.start();
});
// Example special cases
exampleListener.on('executiveOverride', function () {
express.stop();
});
exampleListener.on('reset', function () {
express.restart();
});1.0.0
11 years ago