Colocando a senha em um arquivo zip usando node.js

var fs = require("fs");
var Minizip = require('minizip-asm.js');
/*
https://www.npmjs.com/package/minizip-asm.js
*/

var text = new Buffer("HI!");
var mz = new Minizip();

mz.append("Folder/Readme.txt", text, { password: "secret" });
fs.writeFileSync("Test.zip", new Buffer(mz.zip()));
Enchanting Elephant