MCPcopy
hub / github.com/gildas-lormeau/zip.js / exportZip

Method exportZip

index-native.cjs:6426–6436  ·  view source on GitHub ↗
(writer, options)

Source from the content-addressed store, hash-verified

6424 }
6425
6426 async exportZip(writer, options) {
6427 const zipEntry = this;
6428 if (options.bufferedWrite === UNDEFINED_VALUE) {
6429 options.bufferedWrite = true;
6430 }
6431 await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]);
6432 const zipWriter = new ZipWriter(writer, options);
6433 await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options);
6434 await zipWriter.close();
6435 return writer.getData ? writer.getData() : writer.writable;
6436 }
6437
6438 getChildByName(name) {
6439 const children = this.children;

Callers 4

exportBlobMethod · 0.95
exportData64URIMethod · 0.95
exportUint8ArrayMethod · 0.95
exportWritableMethod · 0.95

Calls 6

closeMethod · 0.95
initReadersFunction · 0.70
initStreamFunction · 0.70
exportZipFunction · 0.70
getTotalSizeFunction · 0.70
getDataMethod · 0.65

Tested by

no test coverage detected