• Reads a gzipped file synchronously and returns the uncompressed data as a Buffer.

    Parameters

    • path: string

      The path to the gzipped file.

    • OptionalreadFileOptions: {
          encoding?: null;
          flag?: string;
      }

      The options to pass to the readFileSync function.

      • Optionalencoding?: null
      • Optionalflag?: string
    • OptionalzlibOptions: ZlibOptions

      The options to pass to the unzipSync function.

    Returns Buffer

    The uncompressed data as a Buffer.