How to rewrite the existing text file inside zip archive through javascript JSZip? Want to change the data of file input.js where value1 variable is having the data.
var JSZip = require('JSZip');
fs.readFile( "files/FIB_typing.zip", function(err, data) {
if (!err) {
var zip = new JSZip();
zip.file("input.js", value1);
}
});