List contents of tar file using javascript
1 answer
Have you tried using UnTar.js ? Its an open source js library for this
edit: providing a use case for clarity
function updateProgressBar(e) { ... update UI element ... }
function displayZipContents(e) { ... display contents of the file ... }
var unzipper = new bitjs.archive.Unzipper(zipFileArrayBuffer);
unzipper.addEventListener("progress", updateProgressBar);
unzipper.addEventListener("finish", displayZipContents);
unzipper.start();
More information here
0
source to share