k2static

Serve static files for koa

Usage no npm install needed!

<script type="module">
  import k2static from 'https://cdn.skypack.dev/k2static';
</script>

README

k2static

Serve static files for koa.
serve-static wrapper for koa's middleware.

NPM version NPM Downloads Build status Test coverage Dependency status License

Install

$ npm install --save k2static

Usage

const koa = require('koa');
const serveStatic = require('k2static');
const app = new Koa();

app.use(serveStatic(root, options));