I want to extract .tar.bz2 like the following with tar.gz with node.js:
request.get("localhost/file.tar.gz")
.pipe(zlib.createGunzip())
.pipe(tar.Extract({path: "./test"}))
.on("error", function(err){
console.log("Error on extract", err);
})
.on("end", function(){
console.log("done.");
});
The part "zlib.createGunzip()" should be replaced by a bz2-deflator. Does anyone know a working package for this issue?
Thanks