koa-static2
0.1.8 • Public • Published Koa-static2
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
Package Sidebar
Install
Weekly Downloads