(output: WriteStream, options?: LoadOptions, effects?: LoadEffects)
| 513 | } |
| 514 | |
| 515 | async exec(output: WriteStream, options?: LoadOptions, effects?: LoadEffects): Promise<void> { |
| 516 | const archivePath = join(this.root, await this.preload(options, effects)); |
| 517 | const file = (await JSZip.loadAsync(await readFile(archivePath))).file(this.inflatePath); |
| 518 | if (!file) throw enoent(this.inflatePath); |
| 519 | const pipe = file.nodeStream().pipe(output); |
| 520 | await new Promise((resolve, reject) => pipe.on("error", reject).on("finish", resolve)); |
| 521 | } |
| 522 | } |
| 523 | |
| 524 | interface TarExtractorOptions extends ExtractorOptions { |
no test coverage detected