diff --git a/lib/archive.js b/lib/archive.js index 23d443a..5e36069 100644 --- a/lib/archive.js +++ b/lib/archive.js @@ -15,11 +15,13 @@ function ArchiveObject(engine) { this.setReadFormat = function(readFormat) { this.readFormat = readFormat; + return this; }; this.setWriteFormat = function(writeFormat) { this.writeFormat = writeFormat; + return this; }; @@ -96,6 +98,7 @@ function ArchiveObject(engine) { this.addFile = function(file) { this.patterns.push(file); + return this; }; @@ -104,6 +107,8 @@ function ArchiveObject(engine) { if (typeof engine === "undefined") { this.setEngine("cabinet"); }; + + return this; }; this.create();