Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
uncompressedSize: number;
compressedSize: number;
offset: number;
disknum: number;
} =
entry.extra;
})
.promise()
.then(() => {
console.log("Finished reading stream");
});
const dir1: Promise = Open.file("Z:\\path\\to\\archive.zip");
const dir2: Promise = Open.url(get("url/to/archive.zip"), {});
const dir3: Promise = Open.s3("any", "any");
const dir4: Promise = Open.buffer(Buffer.from('ZIPDATA'));
(async () => {
const cd = await dir1;
await cd.extract({
path: "path/to/extraction/root"
});
})();