StaticfindGets the country calling code information from a phone number. Tries to match from longest to shortest code to handle overlapping prefixes.
The phone number starting with +
The country code info or undefined if not found
StaticgetGets country code info by the code itself.
The country code (e.g., "+1", "+52")
The country code info or undefined if not found
StaticgetGets all registered country codes.
Array of all country code information
StatichasChecks if a country code exists in the registry.
The country code to check
true if the code exists
Registry of country calling codes following ITU-T E.164 standard.
This module provides a comprehensive mapping of international dialing codes to their respective countries and validation rules.