npm.io
1.0.0 • Published 9 years ago

express-lowercase-paths

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
7

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
  2. Keeps query parameters intact

Installation

npm install express-lowercase-paths

Usage

var lowercasePaths = require("express-lowercase-paths")
app.use(lowercasePaths())

Keywords