Visit Website

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

FEATURES

ALTERNATIVES

Comprehensive guide on best practices for PHP development.

A module that enforces HTTPS connections and automatically redirects non-encrypted HTTP requests to HTTPS.

Free multi-platform database tool with support for various databases and rich features.

echoCTF is a computer security framework for running cybersecurity exercises and competitions like Capture the Flag, used for network penetration testing and security auditing.

A repository of CTF source files and write-ups from 2015, addressing common issues in CTF write-ups.

Utility that exposes TLS certificate expiry as Prometheus metrics.

A tool for auditing and reporting Unix host security with the ability to perform a lockdown.

A scalable python framework for security research and development teams.

CyberSecTools logoCyberSecTools

Explore the largest curated directory of cybersecurity tools and resources to enhance your security practices. Find the right solution for your domain.

Copyright © 2024 - All rights reserved