
A library of string validators and sanitizers.

A library of string validators and sanitizers.
validator.js is a Static Application Security Testing product. Pricing is free.
This library validates and sanitizes strings only. 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. Installation and Usage Server-side usage Install the library with npm install validator No ES6 var validator = require('validator'); validator.isEmail('foo@bar.com'); //=> true ES6 import validator from 'validator'; Or, import only a subset of the library: import isEmail from 'validator/lib/isEmail'; Tree-shakeable ES imports import isEmail from 'validator/es/lib/isEmail'; Client-side usage The library can be loaded either as a standalone script, or through an AMD-compatible loader <script type="text/javascript" src="validator.min.js"></script> <script type="text/javascript"> validator.isEmail('foo@bar.com'); //=> true </script> The library can also be installed through bower $ bower install validator-js CDN <script src="https://unpkg.com/validator@latest/validator.min.js"></script> Validators Here is a list of the validators currently available. Validator Description contains(str, seed [, options]) check if the string contain
Common questions about validator.js including features, pricing, alternatives, and user reviews.
validator.js is A library of string validators and sanitizers. It is a Application Security solution designed to help security teams with Validation.
validator.js is built for security teams handling Validation. Teams typically adopt validator.js when they need to application security capabilities integrated into their existing stack. Explore similar tools at https://cybersectools.com/alternatives/validatorjs
validator.js is a free Application Security tool. This makes it accessible for organizations of all sizes, from startups to enterprises. Visit https://github.com/chriso/validator.js/ for download and installation instructions.
Popular alternatives to validator.js include:
Compare all validator.js alternatives at https://cybersectools.com/alternatives/validatorjs
validator.js is for security teams and organizations that need Validation. It's particularly suitable for small to medium-sized teams looking for cost-effective solutions. Other Application Security tools can be found at https://cybersectools.com/categories/application-security
Head-to-head feature, pricing, and rating breakdowns.
A Node.js library for validating environment variables and providing immutable access to configuration values in applications.
SAST tool that detects logical flaws and business logic vulnerabilities
AI-native SAST tool providing contextual code security analysis in pull requests