• Packs given data with MessagePack then deflates / compresses with Zlib. The inverse function to inflate is inflateAndUnpack.

    Parameters

    • data: any

      Any data.

    • Optionalopts: {
          deflateOptions?: DeflateOptions;
      }

      Optional parameters.

    Returns Uint8Array

    Packed and compressed data.