UNPKG

extract-country-code-from-phone-number

Version:

this is a utility package to help formatting the phone number for security purposes

6 lines (5 loc) 199 B
/** * would throw an error if the provided number is invalid * @param phoneNumber a valid mobile number */ export declare const extractCountryCodeFromPhoneNumber: (phoneNumber: string) => string;