2.0.1 • Published 8 years ago

koa2-serve-index v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

koa2-serve-index

NPM version NPM Downloads Build status Test coverage Dependency status License

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.

License

MIT. The Silk icons are created by/copyright of FAMFAMFAM.