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.
Parameters
Section titled “Parameters”source
Section titled “source”Readable
string
limits
Section titled “limits”Returns
Section titled “Returns”Promise<ExtractionResult>
Throws
Section titled “Throws”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.