Simple lowercasing middleware for Koa 2.
npm i -S koa-lowercase
import Koa from 'koa'
import lower from 'koa-lowercase'
const app = new Koa()
app.use(lower)
// other middlewares, routes, etc.
app.listen(process.env.PORT || 3000)
console.log(`Serving on ${port}`)
POST
, HEAD
, PUT
, and DELETE
are not lowercased.
Querystrings are not lowercased.
Please note this module is for Koa 2. If you're using Koa 1, consider this module or this one.