Hi
i am new to node i have a requirement where i have to compress a set of
received .xlsx files into .zip. I have to again email this zip as an
attachement. I could now attach a single xlsx file into the mail, but i am
clueless how to compress this file into a zip.kindly help
Please look at below code snippet where .xlsx is generated.
// XLSX file
attachements.push(...[report.emailParts.XLSX].filter(a=>a).map((xlsx) => {
let out_file_name = "";
let a=[];
try {
out_file_name = out_file_pattern_to_name(
report.parts[0].outfile_pattern || outfile_pattern,
{Name: report.parts[0].Name || name});
} catch (e) {
console.dir(e);
process.exit(1);
}
return {
filename:out_file_name + '.xlsx' ,
content: new Buffer(xlsx, 'base64')
}
}));
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/4eab9bf5-9c1e-4857-8b70-84456f247dc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.