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
Iris Powered By Generali - Iris puts your customer in control of their identity. Icon
Iris Powered By Generali - Iris puts your customer in control of their identity.

Increase customer and employee retention by offering Onwatch identity protection today.

Iris Identity Protection API sends identity monitoring and alerts data into your existing digital environment – an ideal solution for businesses that are looking to offer their customers identity protection services without having to build a new product or app from scratch.
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