Skip to content

mosluce/koa-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koa Static Middleware

logo

build status

Lightweight static files middleware for Koa2

Install

npm install -S koa-static-middleware

Usage

const Koa = require('koa');
const path = require('path');

const staticMiddleware = require('./libs/koa-static-middleware');

const app = new Koa();

app.use(staticMiddleware(path.join(__dirname, 'public')));

LICENSE

MIT

About

Lightweight static files middleware for Koa2

Resources

License

Stars

Watchers

Forks

Packages

No packages published