srcStream.on('end', () => { // check if there's buffered data left within // the transform stream and force push it const remainingData = gzipStream.read() if (remainingData !== null) { destStream.write(remainingData) } gzipStream.end() })
srcStream.on('end', () => { // check if there's buffered data left within // the transform stream and force push it const remainingData = gzipStream.read() if (remainingData !== null) { destStream.write(remainingData) } gzipStream.end() })