FindSoftware

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

Status
Active
Maintainer
Chris O'Hara2
First release
20115

Rendering and deploy

Install with
npm, script tag, bower3

Releases

Current major version
134
Last release
2026-04-024

Adoption

GitHub stars
23,7441
npm downloads a week
35,318,1866
Contributors
4127
Dependent repositories
493,7288
Dependent packages
5,5708

Why these figures do not compare

Sources

  1. 2026-11-17: links, Written in, License, GitHub stars
    api.github.com/repos/validatorjs/validator.js
  2. 2026-11-17: Maintainer
    raw.githubusercontent.com/validatorjs/validator.js/master/LICENSE
  3. 2026-11-17: Categories, License model, Install with
    raw.githubusercontent.com/validatorjs/validator.js/master/README.md
  4. 2026-11-17: Current major version, Last release
    github.com/validatorjs/validator.js/releases/tag/13.15.35
  5. 2026-11-17: First release
    registry.npmjs.org/validator
  6. 2026-11-17: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/validator
  7. 2026-11-17: Contributors
    api.github.com/repos/validatorjs/validator.js/contributors?per_page=1
  8. 2026-11-17: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/validator

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON