Skip to content

A TypeScript library for extracting individual files from .zip files over HTTP without downloading the entire archive.

License

Notifications You must be signed in to change notification settings

BernhardWebstudio/remote-zip

Repository files navigation

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-zip

Usage

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.

About

A TypeScript library for extracting individual files from .zip files over HTTP without downloading the entire archive.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published