express-validator is a set of express.js middlewares that wraps validator.js validator and sanitizer functions. It's recommended that you have basic knowledge of the express.js module before you go on with this guide. Sometimes, receiving input in a HTTP request isn't only about making sure that the data is in the right format, but also that it is free of noise. validator.js provides a handful of sanitizers that can be used to take care of the data that comes in. Although express-validator offers plenty of handy validators and sanitizers through its underlying dependency validator.js, it doesn't always suffice when building your application. For these cases, you may consider writing a custom validator or a custom sanitizer. A custom validator may be implemented by using the chain method .custom(). It takes a validator function.

Features

  • Custom validators/sanitizers
  • Custom Error Messages
  • Schema Validation
  • Whole Body Validation
  • Running validations imperatively
  • Validation middlewares

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow express-validator

express-validator Web Site

Other Useful Business Software
The All-In-One Google Workspace Management Tool for IT Admins Icon
The All-In-One Google Workspace Management Tool for IT Admins

Our advanced administration makes adding, deleting, suspending, and de-provisioning users simple and quick.

gPanel by Promevo streamlines administration, security, and user management, giving organizations full control over their Google Workspace.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of express-validator!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Frameworks, TypeScript Web Development Software

Registered

2022-10-31