I am able to append data to a file like this
row (this I will get )
fs.appendFile('./file.txt', JSON.stringify(row) + '\n', (err) => {
if (err) throw err;
});
But how can I "append" the data while zipping it at the same time ? I am unsure if this is possible, If yes any pointers will be extremely helpful. Can I achieve it through piping? if yes how?
zip.appendData('./file.zip',JSON.stringify(row) + '\n', (err) => {
if (err) throw err;
});
Something like above ?