1.0.0 • Published 9 years ago

express-server-with-commands v1.0.0

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
9 years ago

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-commands
express = 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();
});