Skip to content

koa-modules/serve-list

Repository files navigation

koa-serve-list

Serves pages that contain directory listings for a given path for koa.
serve-index wrapper for koa's middleware.

NPM versionNPM DownloadsBuild statusTest coverageDependency statusLicense

Install

$ npm install --save koa-serve-list

Usage

=1.x, 100%, working with koa-v2

constKoa=require('koa');constserveList=require('koa-serve-list');constserveStatic=require('koa-serve-static');constapp=newKoa();app.use(serveList(path,options));app.use(serveStatic(root,options));app.listen(3000);

<1.x

varkoa=require('koa');varserveList=require('koa-serve-list');varserveStatic=require('koa-serve-static');varapp=koa();app.use(serveList(path,options));app.use(serveStatic(root,options));app.listen(3000);

About

Serve directory listings for koa, based on Express's serve-index.

Resources

License

Stars

Watchers

Forks

Packages

No packages published