Koa middleware that redirects all requests to an URL with uppercase letters to the same URL in lowercase, ignoring the query string (key and value).
npm install koa-lowercase-url
const app = new (require('koa'));
app.use(require('koa-to-lowercase')());
app.use(async (ctx, next) => {
ctx.response.body = 'If this URL had uppercase letters before the ? now they are in lowercase.';
});
app.listen(8000);