VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

Node.js zlib.createBrotliDecompress() Method

Last Updated : 28 Apr, 2025

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

Syntax:

zlib.createBrotliDecompress( options )

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

Return Value: It returns a new BrotliDecompress object. 

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

 Example 1: 

Output:

Nidhi

Example 2: 

Output:

Q1MtUG9ydGFsIQ==

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

Comment

Explore