How to use the unzipper.Open.s3 function in unzipper

To help you get started, we’ve selected a few unzipper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / unzipper / unzipper-tests.ts View on Github external
partsize: number;
            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"
    });
})();

unzipper

Unzip cross-platform streaming API

MIT
Latest version published 10 days ago

Package Health Score

79 / 100
Full package analysis