ESM List ZIP
This is an ESM (EcmaScript Modules) ZIP entry listing library for JavaScript.
Example
Paste a URL below or leave the default sample ZIP URL and press Go.
Note: CORS applies! If your ZIP is not accessible due to CORS, see Usage.
Usage
import listZip from 'https://tomashubelbauer.github.io/esm-list-zip/index.js';
for await (const entry of listZip(url, onFetch, onNoRange)) {
// { name: string; offset: number; size: number; content?: ArrayBuffer; }
}