Skip to content

1ta/koa-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-middleware

[DEPRECATED] Replaced by @wusisu/koa-middlewares


This is a koa2 middleware collection which use koa-convert to convert a koa1 middleware into a koa2 one if needed.

##middleware list

##Usage

es2015:

import {cors, favicon} from 'koa-middleware'
app.use(cors())
app.use(favicon('path/to/favicon'))

es5:

const middlewares = require('koa-middleware')
const cors = middlewares.cors
const favicon = middlewares.favicon
app.use(cors())
app.use(favicon('path/to/favicon'))

About

This is a koa2 middleware collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published