Skip to main content
Module

x/zipjs/index.js>ZipDirectoryEntry#exportZip

JavaScript library to zip and unzip files supporting multi-core compression, compression streams, Zip64 and encryption.
Go to Latest
method ZipDirectoryEntry.prototype.exportZip
import { ZipDirectoryEntry } from "https://deno.land/x/zipjs@v2.6.60/index.js";

Creates a zip file via a custom Writer instance containing the entry and its descendants

Parameters

writer:
| Writer<unknown>
| WritableWriter
| AsyncGenerator<Writer<unknown> | WritableWriter | WritableStream>

The Writer instance.

optional
options: ZipDirectoryEntryExportOptions

The options.

Returns

Promise<unknown>

A promise resolving to the data.