This beginner-friendly project will teach you about streams, one of Node's most powerful features.
The code consists of four steps: importing the required modules, creating a menu for the user to choose between compressing or decompressing a file, implementing the compression function, and implementing the decompression function.
The compression function asks the user for the file to compress, checks if the file exists, sets up the file processing pipeline, and shows the compressed file's statistics.
The decompression function asks the user for the compressed file, checks if it exists, sets up the file processing pipeline, and shows the output file location.