koa2-serve-index
v2.0.1
Published
Serve directory listings for koa@2
Downloads
89
Readme
koa2-serve-index
A koa2 middleware serves pages that contain directory listings for a given path, based on Express's serve-index v1.8.0.
Install
$ npm install koa2-serve-index
Usage
const koa = require('koa');
const serveIndex = require('koa2-serve-index');
const app = new Koa();
app.use(serveIndex(path, options));
app.listen(3000);
For more options and API documents, please see serve-index's README.