Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 874 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 874 Bytes

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