diff --git a/3_compress_a_stream/README.md b/3_compress_a_stream/README.md index 9aa165a..7482401 100644 --- a/3_compress_a_stream/README.md +++ b/3_compress_a_stream/README.md @@ -1,7 +1,7 @@ # Compress a stream of data in NodeJS -A cool thing about Streams is that you can chain them using pipes. This means that you can manipulate the data that is coming in real time. This example shows perfectly how you can compress the content of a file by piping the stream to the zlib lib module before saving it back to disk or passing it to the next pipe. +A cool thing about Streams is that you can chain them using pipes. This means that you can manipulate the data that is coming in real time. This example shows perfectly how you can compress the content of a file by piping the stream to the **zlib** lib module before saving it back to disk or passing it to the next pipe. # How to Run the Code -Simply type the following command in the terminal `node index.js`. \ No newline at end of file +Simply type the following command in the terminal `node index.js`. diff --git a/3_compress_a_stream/index.js b/3_compress_a_stream/index.js index 6cb035a..4e03b4e 100644 --- a/3_compress_a_stream/index.js +++ b/3_compress_a_stream/index.js @@ -24,7 +24,7 @@ let options_compressed = { } // -// Open a file to be red +// Open a file to be read // let raw_file = fs.createReadStream('./file.txt', options_raw); @@ -43,4 +43,4 @@ let gz = zlib.createGzip(); // raw_file .pipe(gz) - .pipe(to_compressed_file); \ No newline at end of file + .pipe(to_compressed_file);