1 repository
Middleware that cleans and transforms request field values by applying sanitization functions before route handlers execute.
Distinct from Request Validation Middleware: Distinct from Request Validation Middleware: focuses on sanitization (cleaning/transforming values) rather than validation (checking rules).
Explore 1 awesome GitHub repository matching web development · Sanitization Middleware. Refine with filters or upvote what's useful.
express-validator is a server-side input validation library designed specifically for Express.js applications. It provides middleware that validates and sanitizes incoming HTTP request data against developer-defined rules, collecting all validation failures into a single array for simultaneous error reporting rather than failing on the first error. The library offers a chainable validation API where rules are built by chaining methods on a validation chain object, enabling declarative specification of multiple validators and sanitizers for a single request field. Each validation chain operate
Ships middleware that sanitizes request field values by applying transformation functions before route handlers run.