zlib Deflate Lab

Medium
0.0% Acceptance

In this lab, you will implement compression and decompression using Node.js zlib module's deflate() and inflate() methods. These methods are a means to compress and decompress data, respectively. You will create functions that handle the compression and decompression process and test them using pre-defined test inputs and expected outputs. Follow the challenges carefully and make sure to export the required functions and variables.

The main concept you will learn in this lab is the use of the zlib module and its deflate() and inflate() methods. These methods are very useful when working with large data that needs to be compressed before sending over a network or before being decompressed, enabling more efficient storage and data transfer.

The zlib module provides synchronous, asynchronous, and promise-based versions of their functions, offering flexibility in terms of usage. For this exercise, we will be using the promise-based version to ensure we have a more readable and clean code.