remote-zip
v0.0.5
Published
A TypeScript/JavaScript library for extracting individual files from .zip files over HTTP without downloading the entire archive.
Maintainers
Readme
remote-zip
A TypeScript/JavaScript library for extracting individual files from .zip files over HTTP without downloading the entire archive.
The implementation is heavily inspired by the unzip-http Python package.
Installation
npm i -D remote-zipUsage
Example:
const remoteZip = new RemoteZip(zipUrl);
const availableFiles = await remoteZip.getFileList();
const objectURL = await remoteZip.getFileAsObjectURL(availableFiles[0]);And with that, you would have downloaded the first file from the ZIP.
Example
A live example might be published on GitHub pages in a while.
