pakdatakit/phone
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| PhoneAnalysis | Combined phone validation, formatting, and network analysis result. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| normalizePhoneDigits | Normalizes a phone string to digits with country code (no leading plus). |
| getPhonePrefix | Returns the local Pakistani mobile prefix (0XXX) from a phone number. Returns null when the phone cannot be normalized. |
| validatePhone | Validates a Pakistani mobile phone number. |
| formatPhone | Formats a Pakistani mobile number to international E.164 style (+923001234567). |
| analyzePhone | Analyzes a Pakistani mobile number in a single call. |
References
Section titled “References”NetworkName
Section titled “NetworkName”Re-exports NetworkName