What is validator.js

Top 15 recommendations to protect your business from email-borne threats with Security Gateway.

This Library Validates and Sanitizes Strings Only

If you're uncertain whether your input is a string, you can convert it by using input + ''. If you pass anything other than a string, it will result in an error.

Installation and Usage Overview

Installation and Usage Server-side usage To install the library, use the following command: npm install validator Using CommonJS (No ES6): var validator = require('validator'); validator.isEmail('[email protected]'); //=> true Using ES6: import validator from 'validator'; Alternatively, you can import just a specific part of the library: import isEmail from 'validator/lib/isEmail'; For tree-shakeable ES imports: import isEmail from 'validator/es/lib/isEmail'; Client-side usage

The library can be loaded in different ways

The library can be loaded either as a standalone script or by using an AMD-compatible loader. You can include it in your HTML with the following script tag: <script type="text/javascript" src="validator.min.js"></script> <script type="text/javascript"> validator.isEmail('[email protected]'); //=> true </script>

The library can also be installed via Bower

You can also install the library using Bower with the following command: $ bower install validator-js CDN To include the library via a CDN, use the following script tag: <script src="https://unpkg.com/validator@latest/validator.min.js"></script> Validators Below is a list of the available validators: Validator Description contains(str, seed [, options]) Checks if the string contains the specified seed.
 

validator.js Reviews

Write a Review

No reviews yet. Be the first to review this tool!

Write a Review

Share your experience with validator.js tool and help others make informed decisions.

Featured

Specops Software
Free

Specops Software View Specops Software

Specops Software empowers organizations to fortify their IT security by addressing the critical vulnerability of password management and authentication. As a premier vendor, Specops Software provides advanced solutions designed to proactively block weak passwords, enforce robust authentication protocols, and ensure compliance with stringent industry standards like CJIS and HITRUST. With deep native integration into Active Directory and on-premises data storage, Specops Software offers unparalleled security and control for sensitive business data.

5.0
Active Directory password policy auditing against compliance standards
Breached password detection for over 900 million known compromised passwords
Zero-trust access evaluation and enhancement
Infisical
Free

Infisical View Infisical

Infisical is the premier open-source platform designed for unified management of secrets, certificates, and configurations across your entire organization. It seamlessly integrates into your development workflows, CI/CD pipelines, and cloud infrastructure, ensuring secure storage and automated injection of sensitive information. Empower your team with robust features like versioning, point-in-time recovery, comprehensive audit logging, and automated secret rotation for enhanced security and operational efficiency.

Open-source secrets management platform
Unified management of secrets, certificates, and configs
Seamless integration with development workflows and CI/CD
Click Studios
Free

Click Studios View Click Studios

Click Studios is an Australian-based Agile software development company dedicated to evolving Passwordstate, their robust Enterprise Password Management solution. Continuously refined through customer insights and cybersecurity advancements, Passwordstate offers advanced features for secure sensitive information management and stringent compliance. Click Studios provides scalable, secure, and user-friendly password management solutions, empowering businesses globally with affordable and reliable access control.

5.0
Secure Enterprise Password Management
Continuous Feature Enhancement
Customer Feedback Driven Development

Similar Tools

getallurls (gau)
Free

getallurls (gau) View getallurls (gau)

Catch up on the latest cybersecurity news and updates from around the world.

Guardey
Free

Guardey View Guardey

Guardey delivers enterprise-grade cybersecurity solutions tailored for small and medium-sized businesses, ensuring robust protection for your workforce across all operational environments – office, home, or remote. Our platform leverages advanced VPN technology to create an encrypted tunnel for your internet traffic, guaranteeing privacy and anonymity. Simultaneously, our intelligent cyber alarm continuously analyzes network activity, adapting every 15 minutes to detect and neutralize emerging threats.

Enterprise-grade cybersecurity for SMEs
Secure VPN encryption for all internet traffic
Real-time threat detection and analysis
Zero Online Banking
Free

Zero Online Banking View Zero Online Banking

Online cybersecurity conference with speakers' talks and interactive Q&A sessions.

YARA package for Sublime Text
Free

YARA package for Sublime Text View YARA package for Sublime Text

Cybersecurity conference featuring talks on various hacking topics by industry experts.

YARA-sort
Free

YARA-sort View YARA-sort

A project with Terraform and Ansible scripts to create an orchestrated BlueTeam Lab for testing attacks and forensic artifacts on Windows environment.

WPMissionControl
Free

WPMissionControl View WPMissionControl

A scalable python framework for security research and development teams.