Skip to content

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

License

Notifications You must be signed in to change notification settings

gggauravgandhi/includes-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published