Serves pages that contain directory listings for a given path for koa.
serve-index wrapper for koa's middleware.
$ npm install --save koa-serve-list
const Koa = require('koa');
const serveList = require('koa-serve-list');
const serveStatic = require('koa-serve-static');
const app = new Koa();
app.use(serveList(path, options));
app.use(serveStatic(root, options));
app.listen(3000);
var koa = require('koa');
var serveList = require('koa-serve-list');
var serveStatic = require('koa-serve-static');
var app = koa();
app.use(serveList(path, options));
app.use(serveStatic(root, options));
app.listen(3000);