2.0.1 • Published 10 months ago

email-phone-validator v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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 = 'test@example.com'; 
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

  • chiragvchauhan93@gmail.com

Distributed under the unlicense public domain. See LICENSE for more information.

https://github.com/cvchauhan/email-phone-validator

2.0.1

10 months ago

2.0.0

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.0

10 months ago