Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)

...
```