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
8 Monitoring Tools in One APM. Install in 5 Minutes. Icon
8 Monitoring Tools in One APM. Install in 5 Minutes.

Errors, performance, logs, uptime, hosts, anomalies, dashboards, and check-ins. One interface.

AppSignal works out of the box for Ruby, Elixir, Node.js, Python, and more. 30-day free trial, no credit card required.
Start Free
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