koa-single-page

19.0.0 • Public • Published

KoaSinglePage

KoaSinglePage(root, {
  index = 'index.html',
})

A single page application middleware.

setup

npm

npm i koa-single-page

node

let KoaSinglePage = require('koa-single-page');

usage

let app = new Koa();
app.use(KoaSinglePage('public'));

Package Sidebar

Install

npm i koa-single-page

Weekly Downloads

82

Version

19.0.0

License

MIT

Unpacked Size

2.82 kB

Total Files

4

Last publish

Collaborators

  • seregpie