Function: packageZip()
function packageZip(files): Promise<Blob>;
Defined in: src/index.ts:343
Package multiple output files into a single ZIP Blob. Convenience wrapper for hosts that want to download an entire batch in one request.
Parameters
| Parameter | Type |
|---|---|
files | OutputFile[] |
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