Skip to main content
deflateSync - zlib - Node documentation
function deflateSync

Usage in Deno

import { deflateSync } from "node:zlib";
deflateSync(
buf: InputType,
options?: ZlibOptions,
): Buffer

Compress a chunk of data with Deflate.

Parameters

optional
options: ZlibOptions

Return Type

Buffer