https://github.com/bernhardwebstudio/remote-zip
A TypeScript library for extracting individual files from .zip files over HTTP without downloading the entire archive.
https://github.com/bernhardwebstudio/remote-zip
Last synced: 12 days ago
JSON representation
A TypeScript library for extracting individual files from .zip files over HTTP without downloading the entire archive.
- Host: GitHub
- URL: https://github.com/bernhardwebstudio/remote-zip
- Owner: BernhardWebstudio
- License: mit
- Created: 2025-04-17T05:55:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-18T07:36:36.000Z (about 1 year ago)
- Last Synced: 2025-12-25T22:55:16.690Z (5 months ago)
- Language: TypeScript
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://github.com/saulpw/unzip-http) Python package.
## Installation
```bash
npm i -D remote-zip
```
## Usage
Example:
```javascript
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.