Skip to main content

Function: inflateFromBase64Url()

function inflateFromBase64Url(b64u, maxBytes?): Promise<string>;

Inverse of deflateToBase64Url; throws on bad base64url, bad deflate data or bad UTF-8, and ShareTooLargeError when the text would be larger than maxBytes (default MAX_SHARE_BYTES).

Parameters​

b64u​

string

maxBytes?​

number = MAX_SHARE_BYTES

Returns​

Promise<string>