Express middleware for sanitizing urls with the sanitize module
- Requires node 6+
$ yarn install express-url-cleaner --save
or$ npm install express-url-cleaner --save
const express = require('express'),
urlCleaner = require('express-url-cleaner'),
app = express();
app.use(urlCleaner());