Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 379 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 379 Bytes

zipfile.js

Unzip files from .zip archives in JavaScript.

Pass the .zip file to the constructor as an ArrayBuffer. read() will return an Uint8Array of the uncompressed data for each file. I didn't add an API to list files yet because my use case didn't need it. Patches welcome!

var zip = new ZipFile(arrayBuffer);
var data = zip.read("file.txt");