-
Notifications
You must be signed in to change notification settings - Fork 219
/
Copy pathindex.js
39 lines (35 loc) · 941 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import Archiver from "./lib/core.js";
import Zip from "./lib/plugins/zip.js";
import Tar from "./lib/plugins/tar.js";
import Json from "./lib/plugins/json.js";
export { Archiver };
export class ZipArchive extends Archiver {
constructor(options) {
super(options);
this._format = "zip";
this._module = new Zip(options);
this._supportsDirectory = true;
this._supportsSymlink = true;
this._modulePipe();
}
}
export class TarArchive extends Archiver {
constructor(options) {
super(options);
this._format = "tar";
this._module = new Tar(options);
this._supportsDirectory = true;
this._supportsSymlink = true;
this._modulePipe();
}
}
export class JsonArchive extends Archiver {
constructor(options) {
super(options);
this._format = "json";
this._module = new Json(options);
this._supportsDirectory = true;
this._supportsSymlink = true;
this._modulePipe();
}
}