validator.js Logo

validator.js

0
Free
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

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

A company that helps organizations create security-aware teams and produce bug-free software.

A tool to extract links from responses and filter them via decoding/sorting

JSON.parse() drop-in replacement with prototype poisoning protection.

Porting GNU/Linux userland tools to the bionic/Linux userland of Android to provide access to the audit stream for Android applications with minimal overhead.

Steampipe is a zero-ETL solution for getting data directly from APIs and services.

Recorded talks from the Hardwear.io Conference 2018 covering various hardware security topics.

CLI program for cybersecurity solution management with multiple functionalities and authentication methods.

PINNED