Skip to main content

packageZip()

function packageZip(files): Promise<Blob>;

Defined in: impl/js/src/index.ts:610

Package multiple output files into a single ZIP Blob. Convenience wrapper for hosts that want to download an entire batch in one request.

Parameters​

ParameterType
filesOutputFile[]

Returns​

Promise<Blob>

Stable​

Frozen at 1.0.

Example​

const outputs = await convert(templateBuffer, sourceBuffer);
const zip = await packageZip(outputs);
// hand `zip` to the browser as a download