0.1.8 • Published 8 years ago

koa-static2 v0.1.8

Weekly downloads
383
License
MIT
Repository
github
Last release
8 years ago

Koa-static2

NPM version Build Status Downloads

Middleware for Koa2 to serve a folder under a name declared by user

Install

npm install koa-static2

Usage

import Koa from "koa";
import serve from "koa-static2";

const app = new Koa();

app.use(serve("static", __dirname + "/assets"));

License

MIT

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago