![]() |
VOOZH | about |
The zlib.gunzipSync() method is an inbuilt application programming interface of the Zlib module which is used to decompress a chunk of data with Gunzip.
Syntax:
zlib.gunzipSync( buffer, options )
Parameters: This method accepts two parameters as mentioned above and described below:
Return Value: It returns the chunk of data with Gunzip.
The below examples illustrate the use of zlib.gunzipSync() method in Node.js:
Example 1:
Output:
Nidhi
Example 2:
Output:
TmlkaGk=
Reference: https://nodejs.org/api/zlib.html#zlib_zlib_gunzipsync_buffer_options