node-gyp/node_modules/tar/examples/extracter.js
Nathan Rajlich 24bde139e1 Commit node_modules.
For @billywhizz :)

And cause it's just an all around good idea for command-line apps.
2012-02-10 23:44:09 -08:00

11 lines
295 B
JavaScript

var tar = require("../tar.js")
, fs = require("fs")
fs.createReadStream(__dirname + "/../test/fixtures/c.tar")
.pipe(tar.Extract({ path: __dirname + "/extract" }))
.on("error", function (er) {
console.error("error here")
})
.on("end", function () {
console.error("done")
})