validator.js Logo

validator.js

A library of string validators and sanitizers.

23,588
Visit website
Claim and verify your listing
0
CybersecRadarsCybersecRadars

Go Beyond the Directory. Track the Entire Market.

Monitor competitor funding, hiring signals, product launches, and market movements across the whole industry.

Competitor Tracking·Funding Intelligence·Hiring Signals·Real-time Alerts

validator.js Description

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

validator.js FAQ

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 Javascript, Validation.

Have more questions? Browse our categories or search for specific tools.

FEATURED

Heeler Application Security Auto-Remediation Logo

Fix-first AppSec powered by agentic remediation, covering SCA, SAST & secrets.

Hudson Rock Cybercrime Intelligence Tools Logo

Cybercrime intelligence tools for searching compromised credentials from infostealers

Wiz Cloud Logo

Agentless cloud security platform for risk detection & prevention

Mandos Fractional CISO Logo

Fractional CISO services for B2B companies to build security programs

POPULAR

RoboShadow Logo

Automated vulnerability assessment and remediation platform

13
OSINTLeak Real-time OSINT Leak Intelligence Logo

Real-time OSINT monitoring for leaked credentials, data, and infrastructure

8
Cybersec Feeds Logo

A threat intelligence aggregation service that consolidates and summarizes security updates from multiple sources to provide comprehensive cybersecurity situational awareness.

5
TestSavant AI Security Assurance Platform Logo

AI security assurance platform for red-teaming, guardrails & compliance

5
Mandos Brief Logo

Weekly cybersecurity newsletter covering security incidents, AI, and leadership

5
View Popular Tools →

Stay Updated with Mandos Brief

Get strategic cybersecurity insights in your inbox