Skip to main content

Function: ensureJid()

ensureJid(input): string

Defined in: util/jid.ts:47

Normalizes any input into a valid JID.

Accepts a full JID (returned as-is) or a phone number in any format (+34 600 11 22 33, 0034600112233, …), to which it appends the user server.

Parameters

input

string

Returns

string