validator.js
Library of string validators and sanitizers for JavaScript, used on a server or in a browser.
validator.js is a library of string validators and sanitizers for JavaScript. The README documents server-side and client-side usage, with validators such as isEmail, isDate and isCreditCard and sanitizers such as escape, ltrim and normalizeEmail. It validates and sanitizes strings only, so other input has to be converted to a string first. The README serves as its documentation, and it lists several maintainers under the validatorjs GitHub organization.
Worth knowing
The README says XSS sanitization was removed from the library and points to other projects for that job.
Identity
Rendering and deploy
- Install with
- npm, script tag, bower3
Releases
Adoption
Sources
- 2026-11-17: links, Written in, License, GitHub stars
api.github.com/repos/validatorjs/validator.js - 2026-11-17: Maintainer
raw.githubusercontent.com/validatorjs/validator.js/master/LICENSE - 2026-11-17: Categories, License model, Install with
raw.githubusercontent.com/validatorjs/validator.js/master/README.md - 2026-11-17: Current major version, Last release
github.com/validatorjs/validator.js/releases/tag/13.15.35 - 2026-11-17: First release
registry.npmjs.org/validator - 2026-11-17: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/validator - 2026-11-17: Contributors
api.github.com/repos/validatorjs/validator.js/contributors?per_page=1 - 2026-11-17: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/validator