A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.npmjs.com/package/koa-lowercase-url below:

koa-lowercase-url - npm

koa-lowercase-url2.0.0 • Public • Published 8 years ago

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

Installation
npm install koa-lowercase-url
Usage

const app = new (require('koa'));

app.use(reuire('koa-to-lowercase')());

app.use(async (ctx, next) => {

   this.response.body = 'If this URL had uppercase letters before the ? now they are in lowercase.';

});

app.listen(8000);

License

CC0

Related middleware

koa-no-trailing-slash

Package Sidebar Install Downloads Weekly Downloads Collaborators

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4