added callback support

This commit is contained in:
2016-01-20 04:01:21 +01:00
parent 7a00a44a70
commit 2f4f325a86
5 changed files with 27 additions and 5 deletions

View File

@@ -3,5 +3,8 @@ var remotezip = require("./index.js");
var path = require("path");
remotezip.get({
from: "https://github.com/UmbrellaZone/legaldocs/archive/master.zip",
toPath: path.resolve("./test/")
toPath: path.resolve("./test/"),
cb: function () {
console.log("This is a callback");
}
});