includes-validator
v1.0.1
Published
Provides validator for general purpose testing to identify existence of some pattern/object in text
Downloads
3
Maintainers
Readme
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}`);