• Packs given data with MessagePack then deflates / compresses with Zlib then converts the Uint8Array to a Base64 string. The inverse function to inflate is inflateAndUnpackB64.

    Parameters

    • data: any

      Any data.

    • Optionalopts: {
          deflateOptions?: DeflateOptions;
          urlsafe?: boolean;
      }

      Optional parameters.

      • OptionaldeflateOptions?: DeflateOptions

        Deflate options.

      • Optionalurlsafe?: boolean

        Base64 string is URL-and-filename-safe a la RFC4648 ยง5.

    Returns string

    Packed / compressed / Base64 string.