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.