Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riipen/express-elastic-sanitize
A sanitization middleware for Express targeting Elasticsearch.
https://github.com/riipen/express-elastic-sanitize
Last synced: 4 months ago
JSON representation
A sanitization middleware for Express targeting Elasticsearch.
- Host: GitHub
- URL: https://github.com/riipen/express-elastic-sanitize
- Owner: riipen
- License: mit
- Archived: true
- Created: 2017-07-20T01:21:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T18:59:36.000Z (almost 2 years ago)
- Last Synced: 2024-08-07T20:10:13.643Z (4 months ago)
- Language: JavaScript
- Size: 250 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# express-elastic-sanitize
[![npm install --save express-elastic-sanitize](https://nodei.co/npm/express-elastic-sanitize.png)](https://npmjs.org/package/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
```bash
$ npm install --save express-elastic-sanitize
```## Usage
```bash
import sanitizer from 'express-elastic-sanitize';...
app.get(sanitizer)
...
```