Skip to content

gzipCompressAsync

gzipCompressAsync(data, level?): Promise<Buffer<ArrayBufferLike>>

Defined in: index.d.ts:1470

Asynchronously compress data using gzip.

Returns a Promise that resolves to the compressed data as a Buffer. Level is an integer from 0 (no compression) to 9 (best compression). Default is 6.

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

number | null

Promise<Buffer<ArrayBufferLike>>