VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

Node.js zlib.createInflate() Method

Last Updated : 28 Apr, 2025

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

Syntax:

zlib.createInflate( options )

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

Return Value: It returns a new Inflate object. 

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

Example 1: 

Output:

Hello World!

Example 2: 

Output:

4465636f6d707265737365642e2e

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

Comment

Explore