gggauravgandhi / includes-validator

Provides validator for general purpose testing to identify existence of some pattern/object in text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

includes-validator

Provides validator for general purpose testing to identify existence of some pattern/object in text

Install

NPM

npm install includes-validator

Usage

const includes = require('includes-validator');

const includesPhone = includes.phone(someString);
const includesEmail = includes.email(someString);

console.log(`Does string includes phone? ${includesPhone}`);
console.log(`Does string includes email? ${includesEmail}`);

About

Provides validator for general purpose testing to identify existence of some pattern/object in text

License:MIT License


Languages

Language:JavaScript 100.0%