Class Compressor

Compressor class for compressing and decompressing data.

Constructors

Methods

Constructors

Methods

  • Compresses the data using gzip.

    Parameters

    • data: Uint8Array | Buffer

      The data to compress.

    Returns Buffer

    The compressed data.

  • Decompresses the data using gunzip.

    Parameters

    • data: Uint8Array | Buffer

      The data to decompress.

    Returns Buffer

    The decompressed data.