![]() |
VOOZH | about |
zlib.close( callback )Parameters: This method accepts single parameter callback which holds the callback function. Below examples illustrate the use of zlib.close() method in Node.js: Example 1: Output:
Closed!Example 2:
Program Completed!Here, piping is not done as close method closes the hidden handle. Reference: https://nodejs.org/api/zlib.html#zlib_zlib_close_callback