![]() |
VOOZH | about |
The zlib.createUnzip() method is an inbuilt application programming interface of the Zlib module which is used to create a new Unzip object.
Syntax:
zlib.createUnzip( options )
Parameters: This method accepts single parameter options which is an optional parameter that holds the zlib options.
Return Value: It returns a new Unzip object.
The below examples illustrate the use of zlib.createUnzip() method in Node.js:
Example 1: In this example, we will see the use of zlib.createUnzip() method.
Output:
Nidhi Singh
Example 2: In this example, we will see the use of the createUnzip() method.
Output:
4e696468692053696e6768
Reference: https://nodejs.org/api/zlib.html#zlib_zlib_createunzip_options