node-archiver
node-archiver copied to clipboard
how to not make duplicate file

zip.append(stream, {name: 'imgs/' + picName1});
zip.append(stream, {name: 'imgs/' + picName1});
it will add the same file twice, i want to overwrite it? how to?
I know it is a bit late but you can make the date constant and it will overwrite
archive.append(Buffer.from(content, "utf8"), {
name: "slides.json",
date: new Date(2025, 7, 8, 23, 4),
});
好~( ̄▽ ̄)~*