node package manager

koa-lowercase

koa-lowercase

Simple lowercasing middleware for Koa 2.


Installation:

npm i -S koa-lowercase

Usage:

import lower from 'koa-lowercase'
 
// other stuff 
 
app.use(lower)
 
// probably more other stuff 

If you're using require you'll need to do require('koa-lowercase').default.

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.

License:

WTFPL