0.0.2 • Published 2 years ago
zip-input-files v0.0.2
zip-input-files 🗂
zip-input-files allows client side creation of zip files from HTML <input/>
tags thanks to wasm.
let wasm_zip = new WasmZip();
let zipped_files = wasm_zip.zip(files);
where files: FileList
are the FileList in the onchange of a <input/>
tag.
zipped_files
in this case would be a link to the zip file.
<a href={zipped_files} download="filename.zip">download the zip file</a>