How to use the @xmcl/unzip.createParseStream function in @xmcl/unzip

To help you get started, we’ve selected a few @xmcl/unzip 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 Voxelum / minecraft-launcher-core-node / packages / forge-installer / index.ts View on Github external
return async function downloadInstaller(ctx: Task.Context) {
                    await downloadFileIfAbsentWork({
                        url: installer,
                        destination: dest,
                        checksum: {
                            hash: version.installer.sha1,
                            algorithm: "sha1",
                        },
                    })(ctx);
                    return vfs.createReadStream(dest).pipe(Unzip.createParseStream({ lazyEntries: true })).wait();
                };
            }

@xmcl/unzip

A easy unzip interface based on yauzl

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis