whatsapp library

WhatsApp click-to-chat links.

Same as the pakdatakit/whatsapp entry point of the npm package.

Functions

Creates a WhatsApp click-to-chat (wa.me) link for a Pakistani mobile number in any supported format, with an optional pre-filled message (URL-encoded like JavaScript's encodeURIComponent).