jszip
jszip copied to clipboard
A more complete example.
Hello there, Thanks for your work. I'm writing because I'm having trouble to understand how to use JSZip. Especially the async aspect to it. Reading the upgrade guide (https://stuk.github.io/jszip/documentation/upgrade_guide.html) version 2.6 seemed so simple. But now with the async functions it's much harder to wrap my head around.
What would be great is a more complete example showing something like :
- Select a .zip file from computer
- Unzip the selected .zip and populate a input type="select" with all enclosed files titles. So up to there it'd be very close to current example 'read file'.
- When a file is selected display the file text content inside a text input.
- save button to save the new file in the JSzip object.
- export button to generate the zip and download it.
Such a complete example would be great because it would show how to handle those multiple async functions. Thanks!