express-elastic-sanitize
v1.0.1
Published
Elasticsearch input sanitizer for Express
Downloads
16
Readme
express-elastic-sanitize
A sanitization middleware for Express targeting Elasticsearch.
Purpose
Used for stripping out special characters from all request parameters, thus avoiding basic injection attacks through invalid parameters.
Installation
$ npm install --save express-elastic-sanitize
Usage
import sanitizer from 'express-elastic-sanitize';
...
app.get(sanitizer)
...