express-server-with-commands

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i express-server-with-commands

Weekly Downloads

1

Version

1.0.0

License

BSD-2-Clause

Last publish

Collaborators

  • mikattack