@rmarscher/express-init

Standard way to initializes an Express server.

Usage no npm install needed!

<script type="module">
  import rmarscherExpressInit from 'https://cdn.skypack.dev/@rmarscher/express-init';
</script>

README

Express Init

This bootstraps an express instance in a standard way but also exposes each of the bootstrapping methods if you want to call them in a different way.

Here's the typical usage:

var initExpress, app, server;

initExpress = require( 'express-init' );
app = initExpress.app();
server = initExpress.listen( app );
initExpress.gracefulShutdown( server );