gildas-lormeau/zip.js

I hope you can set the zip file comment

nijinekoyo opened this issue · 2 comments

I did not find the comment configuration in the ZipWriterConstructorOptions type. Currently I can only set the comment of each file in zipWriter.add(). I hope to set a single zip in new ZipWriter() comment of the file

See ZipWriter close, the optional first argument is the comment for the EOCD:

close(comment = undefined, options = {}) {
return this.zipWriter.close(comment, options);
}

async close(comment = new Uint8Array(), options = {}) {

See ZipWriter close, the optional first argument is the comment for the EOCD:

close(comment = undefined, options = {}) {
return this.zipWriter.close(comment, options);
}

async close(comment = new Uint8Array(), options = {}) {

That's it, thanks