Compress a chunk of data with Deflate.
Node zlib.deflateSync function | API Reference | Bun BuildDocsReferenceGuidesBlogDiscord/node:zlib/deflateSyncFdeflateSync BuildDocsReferenceGuidesBlogDiscord /node:zlib/deflateSyncFdeflateSync zlib.deflateSyncfunction deflateSync(buf: InputType,options?: ZlibOptions): NonSharedBuffer; Referenced typestype InputType = string | ArrayBuffer | NodeJS.ArrayBufferViewinterface ZlibOptionschunkSize?: numberdictionary?: ArrayBuffer | ArrayBufferViewArrayBufferLike> finishFlush?: numberflush?: numberinfo?: boolean level?: number maxOutputLength?: number memLevel?: number strategy?: number windowBits?: number
Search the reference...
/
function
deflate/inflate only, empty dictionary by default
If true, returns an object with buffer and engine.
compression only
Limits output size when using convenience methods.
compression only
compression only
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Node zlib.deflateSync function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:zlib.deflateSync | Bun