UI for Zipcoin Blue

archive.js 650B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const tslib_1 = require("tslib");
  4. function createArchive(format) {
  5. return tslib_1.__awaiter(this, void 0, void 0, function* () {
  6. const archiver = yield Promise.resolve().then(() => require('archiver'));
  7. return archiver(format);
  8. });
  9. }
  10. exports.createArchive = createArchive;
  11. function createTarExtraction(opts) {
  12. return tslib_1.__awaiter(this, void 0, void 0, function* () {
  13. const tar = yield Promise.resolve().then(() => require('tar'));
  14. return tar.extract(opts || {});
  15. });
  16. }
  17. exports.createTarExtraction = createTarExtraction;