whatsapp-mcp / utils/phone / toMetaFormat
Function: toMetaFormat()
function toMetaFormat(raw): string;Defined in: src/utils/phone.ts:48
Normalise a raw phone string into the WABA wire format.
Parameters
raw
string
input as a human typed or copy-pasted it
Returns
string
digits-only string, e.g. 447700900123
Throws
on empty / too-short input