Express middleware for sanitizing urls with the sanitizer module
- node 6+ recommended, for node < 6 an ES5 module is available at
lib/es5.js
$ yarn add express-url-cleaner
or$ npm install express-url-cleaner --save
const express = require('express'),
urlCleaner = require('express-url-cleaner'),
app = express();
app.use(urlCleaner());
or for node < 6
const express = require('express'),
urlCleaner = require('express-url-cleaner/lib/es5'),
app = express();
app.use(urlCleaner());
Fork the repo and pull requests are always welcome. Please reference an issue in all pull requests, create one for the feature or bug if it doesn't exist yet.