# express-validator

> Express middleware that validates and sanitizes requests with validator.js

Source: https://talira.ai/catalog/express-validator-svs43fbd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / validation / values](https://talira.ai/categories/libraries/validation/values), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [express-validator](https://talira.ai/orgs/express-validator.md)

express-validator is a set of [Express](https://talira.ai/catalog/express-pgcwj8y4.md) middlewares that wrap the validators and sanitizers of [validator.js](https://talira.ai/catalog/validator-js-8jwvky98.md), so you can validate and sanitize request bodies, cookies, headers, params and query strings, and find out whether a request is valid and which data matched. It also works with other HTTP libraries whose request object looks like Express's, such as Restify.

## Links

- Website: https://express-validator.github.io/
- GitHub: https://github.com/express-validator/express-validator
- Docs: https://express-validator.github.io/docs/

## Problems it solves

- check the fields of an incoming Express request before my route handler runs
- reject a POST body with a missing or badly formatted email field
- trim and normalise user input in my Express API

## Features

- validation chains for body, cookies, headers, params and query
- sanitizers from validator.js
- schema validation
- works with Express-like request objects such as Restify

## Limitations

- Needs Node.js 14 or newer[^1]

## Trust

Overall: 0.56 out of 1.
Signals: maintenance 0.65, adoption 0.76, momentum 0.47, community 0.86, backing 0.30, extensibility 0.00.

- last commit yesterday
- 7 commits in the last 90 days
- latest release v7.4.0 yesterday
- 6.2k GitHub stars
- 144 contributors
- accepts sponsorship (Github, Open Collective)
- has a company behind it

## Related

- Works with [Express](https://talira.ai/catalog/express-pgcwj8y4.md)
- Works with [validator.js](https://talira.ai/catalog/validator-js-8jwvky98.md)

## Sources

[^1]: https://express-validator.github.io/docs/ (checked 29 Nov 2026)
[^2]: https://github.com/express-validator/express-validator/blob/master/LICENSE (checked 29 Nov 2026)
[^3]: https://github.com/express-validator/express-validator/blob/master/package.json (checked 29 Nov 2026)
