talira

Compare

validator.jsexpress-validator
What it isString validators and sanitizers for JavaScriptExpress middleware that validates and sanitizes requests with validator.js
KindOpen sourceOpen source
Trust0.540.56
Stars237356229
Last commit2026-09-112026-11-29
LicenceMITMIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable——
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyChris O'Haraexpress-validator
Features
  • validators for email, URL, IP, UUID, IBAN, ISBN, credit card and many other formats
  • locale-aware checks for mobile phone numbers, postal codes and identity cards
  • sanitizers such as trim, escape, normalizeEmail and whitelist
  • import single validators or tree-shakeable ES modules
  • runs in Node.js and in the browser
  • 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
  • It validates and sanitizes strings only: anything else passed in throws an error.
  • XSS sanitization was removed from the library; its README points to DOMPurify or xss-filters instead.
  • Needs Node.js 14 or newer