Skip to content

Instantly share code, notes, and snippets.

@pifantastic
Created December 10, 2012 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pifantastic/4253527 to your computer and use it in GitHub Desktop.
Save pifantastic/4253527 to your computer and use it in GitHub Desktop.
var zlib = require('zlib');
var tar = require('tar');
var dir = __dirname + '/someSEOJob';
request(url)
.pipe(zlib.createGunzip())
.pipe(tar.Extract({ path: dir }))
.on("error", function (err) {
console.error(err)
})
.on("end", function () {
console.log("done")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment