Function writeGZipSync

  • Writes the given data to a file in GZip format synchronously.

    Parameters

    • filePath: string

      The path to the file.

    • data: string | Buffer

      The data to be written to the file. It can be a string or a Buffer.

    • OptionalwriteFileOptions: WriteFileOptions

      The options for writing the file (optional).

    • OptionalzLibOptions: ZlibOptions

      The options for compressing the data using zlib (optional).

    Returns void