koa-statics

static file server for koa.js v2.x

Usage no npm install needed!

<script type="module">
  import koaStatics from 'https://cdn.skypack.dev/koa-statics';
</script>

README

koa-statics

static file server for koa.js v2.x, written in typescript

install

npm install koa-statics

usage

const Koa = require("koa");
const statics = require("koa-statics");

const app = new Koa();

app.use(statics("./assets"));

app.listen(3000);