Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.75 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.75 KB

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.