have you tried https://github.com/skeggse/node-bzip
On Feb 2, 2013, at February 2, 20132:52 AM, remoe <[email protected]> wrote: > Hi > > does anyone know a nativ tar.bz2 decoder for node.js? Here is a working > sample for ".tar.gz": > > var zlib = require('zlib') > , tar = require('tar') > , request = require('request'); > > request.get("http://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 "createGunzip()" should be replaceable with "bz2" decoder. > > Cheers > > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
