xss-purge
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

xss-purge

Issues Forks Stars Pull Request Stats

Node.js Connect middleware to sanitize user input coming from POST body, GET queries, and url params.

Usage

npm install xss-purge

With Express (JS)

const express = require('express');
const xssPurge = require('xss-purge');

const app = express();

app.use(xssPurge());

app.listen(5000)

This will sanitize any data in req.body, req.query, and req.params. You can also access the API directly if you don't want to use as middleware.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i xss-purge

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.44 kB

Total Files

5

Last publish

Collaborators

  • henshawt