validator@13.15.35
// String validation and sanitization
$ npm install validator
downloads/wk
23,205,286
license
MIT
version
13.15.35
published
Apr 2, 2026
What is validator?
The validator package provides functions to validate and sanitize strings, such as checking if input matches expected formats (emails, URLs, credit cards, etc.) and removing or escaping potentially harmful content. Developers use it to ensure user input is safe and correctly formatted before processing or storing data in their applications.
Links
Keywords
Maintainers
cohara87, profnandaa, wikirik