This commit is contained in:
2017-03-12 22:16:48 +01:00
parent 13c82ce689
commit a602c68d8b
20 changed files with 1137 additions and 2251 deletions

11
test/test.js Normal file
View File

@ -0,0 +1,11 @@
/// <reference path="../ts/typings/main.d.ts" />
var smartarchive = require("./index.js");
var path = require("path");
smartarchive.get({
from: "https://github.com/UmbrellaZone/legaldocs/archive/master.zip",
toPath: path.resolve("./test/"),
cb: function () {
console.log("This is a callback");
}
});
//# sourceMappingURL=test.js.map

1
test/test.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,IAAI,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AACzC,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE3B,YAAY,CAAC,GAAG,CAAC;IACb,IAAI,EAAC,8DAA8D;IACnE,MAAM,EAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;IAC9B,EAAE,EAAE;QACA,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;IACrC,CAAC;CACJ,CAAC,CAAC"}

View File

@ -1,8 +1,8 @@
/// <reference path="./typings/tsd.d.ts" />
var remotezip = require("./index.js");
/// <reference path="../ts/typings/main.d.ts" />
var smartarchive = require("./index.js");
var path = require("path");
remotezip.get({
smartarchive.get({
from:"https://github.com/UmbrellaZone/legaldocs/archive/master.zip",
toPath:path.resolve("./test/"),
cb: function(){