Skip to content

pakdatakit/phone

Interface Description
PhoneAnalysis Combined phone validation, formatting, and network analysis result.
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.

Re-exports NetworkName