What is validator.js
If you're not sure if your input is a string, coerce it using input + ''. Passing anything other than a string will result in an error.
Project details
validator.js is a JavaScript project published on GitHub by validatorjs (organization), under the MIT license. It has about 23,743 GitHub stars. The repository was last updated in September 2026.
Topics
The maintainers tag validator.js with: hacktoberfest, input, javascript, node, sanitization, sanitize, validate, validation, validations, validator.
FAQs
Is validator.js free to use?
Yes. validator.js is open source and published under the MIT license.
What language is validator.js written in?
validator.js is mainly written in JavaScript, according to its GitHub repository.
Is validator.js still maintained?
It was last updated in September 2026. Check the repository's issues and releases for current activity.