validatorjs/validator.js
Some data may be outdated — see provenance labels.
String validation observed · 2026-10-02
Health v2 · maintenance only
83/100
- Activity 94
- Release rhythm 58
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 50.5
- age_days: 5858
- days_rel: 201
- days_push: 39
- n_releases_24m: 7
Adoption not part of the score
23740 stars · 2511 forks observed · 2026-10-02
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A JavaScript library of string validators and sanitizers for Node.js and browsers. It provides dozens of checks like isEmail, isURL, and isDate, plus sanitization helpers for cleaning user input.
Use cases
- validate email addresses in a node.js api
- sanitize user input before storing in a database
- check if a string is a valid url or ip address
- validate form fields in the browser
- validate dates, phone numbers, and credit cards
- clean and normalize strings from untrusted sources
When to choose
- you need battle-tested string validation in JavaScript or TypeScript
- you want a lightweight, dependency-free validator usable on server and client
- you need tree-shakeable imports of individual validators
When to avoid
- you need to validate non-string values like objects or arrays
- you want schema-based validation with type coercion (use zod or joi)
- you need form state management, not just validation
Facets
library · maturity stable
form-handling security developer-tools web-development backend frontend developer-tools browser string-validation sanitization input-validation email-validation form-validation nodejs javascript
1 source
- readme: https://github.com/validatorjs/validator.js · fetched 2026-10-02 · 12c4c7099242
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| validatorjs/validator.js | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="validatorjs/validator.js")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem