email-phone-validator
v2.0.1
Published
Provides a fast, pretty robust e-mail and phone number validator. Only checks form, not function.
Downloads
25
Maintainers
Readme
email-phone-validator
A simple module to validate an e-mail address and phone
Installation
Install via NPM:
npm install email-phone-validator
Usage
javascript
// Load the package
const { isValidEmail, isValidPhoneNumber } = require('email-phone-validator');
// Example usage
const email = '[email protected]';
const phoneNumber = '+123-456-7890';
isValidEmail(email); // true
isValidPhoneNumber(phoneNumber); // true
TypeScript
import { isValidEmail, isValidPhoneNumber } from 'email-phone-validator';
isValidEmail(email); // true
isValidPhoneNumber(phoneNumber); // true
Contribute
Contributions welcome! Check the LICENSE
file for more info.
Meta
Distributed under the unlicense public domain. See LICENSE
for more information.