Skip to content

analyzePhone

function analyzePhone(phone): PhoneAnalysis;

Defined in: phone.ts:55

Analyzes a Pakistani mobile number in a single call.

Combines validation, E.164 formatting, and network detection. Invalid numbers return { valid: false, formatted: null, network: "Unknown" }.

Parameter Type Description
phone string Phone number in any supported format

PhoneAnalysis

Structured phone analysis result