Skip to content

extractZipStream

extractZipStream(source, root, limits): Promise<ExtractionResult>

Defined in: packages/core/src/capture/publish/extract.ts:26

Extract source (a zip stream) under root, which must exist.

Readable

string

ExtractionLimits

Promise<ExtractionResult>

When a cap is exceeded or an entry path escapes root; the source is destroyed at once, and the files written so far are left for the caller’s scratch cleanup.