koa-enhanced-server
Koa server with graceful shutdown
Install
$ npm install --save koa-enhanced-server
Usage
import Application from 'koa';
import createServer from 'koa-enhanced-server';
const app = new Application();
const server = createServer(app);
const httpsServer = createServer(app, {
https: true,
// ...TLS options
})
server.listen();