phone-number-validator-by-countrycode
v1.0.0
Published
This package will help JS developers to validate phone length on the basis of country.
Downloads
3
Readme
phone-number-validator
This package will help developer for the phone number validation on the basis of country. This package containst four exported functions
phoneNumberValidatorByPhoneCode : This function contains two required arguments , first argument is phoneCode and second argument is phoneNumber , and in result it will return true if number is valid.
phoneNumberValidatorByCountryCode : This function contains two required arguments , first argument is countryCode and second argument is phoneNumber , and in result it will return true if number is valid.
getPhoneCodeByCountryCode : This function contains one required arguments which is countryCode, and in result it will return an Object having three keys , Success , phoneCode , message.
getCountryCodeByPhoneCode : This function contains one required arguments which is phoneCode, and in result it will return an Object having three keys , Success , countryCode , message.