1.0.8 • Published 7 months ago

secure-request-encoder v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

secure-request-encoder

Secure Request Encoder is a middleware package for Node.js and Express.js that enhances the security of your web application by encoding potentially unsafe characters in HTTP request bodies. It helps prevent cross-site scripting (XSS) attacks by sanitizing user input before it is processed by your application.

Features

  • Automatically encodes HTML entities such as < and > to their safe equivalents (< and >) in request data.
  • Supports both string and object request bodies, ensuring that string values within objects are properly encoded.
  • Recursively traverses complex JSON request bodies to sanitize nested strings.
  • Designed to seamlessly integrate with Express.js applications.

Installation

Install http-status-codes with npm

  npm install secure-request-encoder

Usage/Examples

import securerequestencoder from "secure-request-encoder";

const app = express();

app.use(securerequestencoder);

Feel free to customize and expand upon this description to provide more information about your package's functionality, usage, and any additional features or considerations.

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago