express-lowercase-paths

An Express middleware module that will redirect user HTTP requests that contain uppercase letters, to the same URL converted to lowercase, without modifying query parameters.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
express-lowercase-paths
801.0.06 years ago6 years agoMinified + gzip package size for express-lowercase-paths in KB

Readme

Very similar to the unmaintained project express-uncapitalize, this middleware redirects any requests which contain uppercase chars to their lowercase forms. With two main changes from the original:
1. Works with all utf-8 strings in paths 1. Keeps query parameters intact
Installation
npm install express-lowercase-paths
Usage
var lowercasePaths = require("express-lowercase-paths")
app.use(lowercasePaths())