koa-static2

0.1.8 • Public • Published

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

/koa-static2/

    Package Sidebar

    Install

    npm i koa-static2

    Weekly Downloads

    334

    Version

    0.1.8

    License

    MIT

    Last publish

    Collaborators

    • secbone