Package for zipping files together
npm install @damonware/zip@damonware/zip is a module for creating .zip files. It runs a WebAssembly binary behind the scenes that was created using Rust.
```
npm install @damonware/zip
`ts
import { ZipFile } from '@damonware/zip';
const fileInput = document.getElementById("fileInput");
const zipFile = new ZipFile();
const zipFileResult = await zipFile
.addFile(fileInput.files[0])
.addFiles(fileInput.files)
.addFileBuffer("numbers.bin", new Uint8Array([1,2,3]))
.zip();
console.log(zipFileResult.buffer); // Uint8Array
zipFileResult.download("files.zip"); // Trigger browser download
`
The first call to ZipFile#zip will automatically instantiate the WebAssembly module. If you would like to
perform this action as a separate step, you can do the following:
`ts
import { init } from '@damonware/zip';
await init();
``