I can print the output of gunzip to console just fine, but I want it as a string. What should I do to this code to be able to get it as a string for further processing? res.pipe(gunzip).pipe(process.stdout)