How to Unzip Multiple .gz Files Using NodeJS and ZLib on Windows 10
Steps on how to uncompress multiple .gz files using NodeJS and zlib: 1. Import fs and zlib. var zlib = require('zlib'); var fs = require('fs'); 2. Create function to that will decompress files using zlib.createUnzip();. function decompress(inFilename, outFilename) { var unzip = zlib.createUnzip(); var input = fs.createReadStream(inFilename); var output = fs.createWriteStream(outFilename);input.pipe(unzip).pipe(output); } 3. Call function as many times as you need. Please take note that