validate-telephone
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

validate-telephone

Intro - Telehone Number validation


Simple Telephone number validation

List of features

  • Simple validation for telephone numbers
  • based on google-libphonenumber

Code Demo

import { ValidateTelephone, IValidateTelephoneResults } from "validate-telephone";
 
const region: string = "US";
const examplePhoneNumber: string = "202-100-0000";
const telephoneValidationResults: IValidateTelephoneResults = ValidateTelephone(examplePhoneNumber, region);
console.log(telephoneValidationResults.IsValid);
console.log(telephoneValidationResults.Message);

Download & Installation

$ npm i validate-telephone

Contributing

Authors or Acknowledgments

License

This project is licensed under the MIT License

Readme

Keywords

Package Sidebar

Install

npm i validate-telephone

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

58.6 kB

Total Files

12

Last publish

Collaborators

  • doiedokpayi