OptionallevelOptionalwindowWindow size. See the zlib manual for more information.
OptionalmemMemory level. See the zlib manual for more information.
OptionalstrategyCompression strategy. See the zlib manual for more information.
OptionaldictionaryInitial dictionary. See the zlib manual for more information.
OptionalchunkSize of generated data chunks (16K by default).
OptionalrawDo raw deflate. Say that we work with raw stream, if you don't wish to
specify negative windowBits implicitly.
OptionalgzipCreate gzip wrapper.
OptionallegacySet to true to use the classic zlib hash, which matches canonical zlib
output byte-for-byte. The default false uses the faster ANZAC++ hash,
which matches recent (chromium) node.js output instead.
Compression level. See the zlib manual for more information.