UNPKG

express-xss-sanitizer

Version:

Express 4.x and 5.x middleware which sanitizes user input data (in req.body, req.query, req.headers and req.params) to prevent Cross Site Scripting (XSS) attack.

28 lines (27 loc) 546 B
{ "env": { "commonjs": true, "es2021": true, "node": true }, "extends": [ "prettier", "airbnb-base" ], "plugins": [ "prettier" ], "parserOptions": { "ecmaVersion": 12 }, "rules": { "no-console": "error", "no-param-reassign": "off", "comma-dangle": "error", "prettier/prettier": ["error"], "quotes": "off", "strict": "off", "prefer-arrow-callback":"off", "operator-linebreak": "off" } }