VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-zlib-creategunzip-method/

⇱ Node.js zlib.createGunzip() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js zlib.createGunzip() Method

Last Updated : 28 Apr, 2025

The zlib.createGunzip() method is an inbuilt application programming interface of the Zlib module which is used to create a new Gunzip object. 

Syntax:

zlib.createGunzip( options )

Parameters: This method accepts single parameter options which is an optional parameter that holds the zlib options. 

Return Value: It returns a new Gunzip object. 

The below examples illustrate the use of zlib.createGunzip() method in Node.js: 

Example 1: 

Output:

GeeksforGeeks

Example 2: 

Output:

476647

Reference: https://nodejs.org/api/zlib.html#zlib_zlib_creategunzip_options

Comment

Explore