0.0.2 • Published 2 years ago

zip-input-files v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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

2 years ago

0.0.1

2 years ago