I'm trying to push many files in a big tar archive; I will use either ZLIB, BZ2, or LZMA to compress the files. I really want to use streams so I can check the progress as fast as possible.
So basically if I compress 1 file with ZLIB it should be like?
const gzip = zlib.createGzip();
fs.createReadStream(input).pipe(tarSomethinMaybe?).pipe(gzip).pipe(where?)
How do I add more files in the same archive.tar.gz
? Do I need to concat all these pipes of individual files?
Thank you!