easy-string-validator
v1.0.1
Published
check if it's a valid email or phone number
Downloads
1
Readme
Easy String Validator
check if it's a valid email or phone number
Install Easy String Validator
npm i easy-string-validator
Check if an email is valid
const easystringvalidator = require('easy-string-validator');
console.log(easystringvalidator.validEmail('[email protected]'));
Checi if a phone number is valid
const easystringvalidator = require('easy-string-validator');
console.log(easystringvalidator.validPhoneNumber('0756668657'));