Skip to content

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

Notifications You must be signed in to change notification settings

Secbone/koa-static2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published