On this page

    Each zlib-based class takes an options object. No options are required.

    Some options are only relevant when compressing and are ignored by the decompression classes.

    Attributes
    flush?:integer
    Default: zlib.constants.Z_NO_FLUSH
    finishFlush?:integer
    Default: zlib.constants.Z_FINISH
    chunkSize?:integer
    Default: 16 * 1024
    windowBits:integer
    level:integer
    (compression only)
    memLevel:integer
    (compression only)
    strategy:integer
    (compression only)
    (deflate/inflate only, empty dictionary by default)
    info:boolean
    (If true, returns an object with buffer and engine.)
    maxOutputLength?:integer
    Limits output size when using convenience methods. Default: buffer.kMaxLength
    rejectGarbageAfterEnd?:boolean
    If true, decompression fails when trailing input is detected after the end of the compressed stream. This includes unreadable bytes and, when decompressing gzip, additional gzip members following the first member. Default: false

    See the deflateInit2 and inflateInit2 documentation for more information.