Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 2, 2025. It is now read-only.
/ koa-lowercase Public archive

Simple lowercasing middleware for Koa 2.

License

Notifications You must be signed in to change notification settings

zautumnz/koa-lowercase

Repository files navigation

koa-lowercase

Simple lowercasing middleware for Koa 2.


Installation:

npm i -S koa-lowercase

Usage:

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.

LICENSE

About

Simple lowercasing middleware for Koa 2.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •