km

koa-middleware

A middleware-modules collection for building a typical RESTful web-service using koa

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

11

Size (min+gzip)

219.8KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Deprecated!
replaced by @wusisu/koa-middlewares

Readme

koa-middleware

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'))

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial