How to create password protect zip file in nodejs using node-7z-archive package
Please anyone guide me, how We can create password protected zip file and extract. using node-7z-archive https://www.npmjs.com/package/node-7z-archive actually I want to create password protect zip file with a folder code to create a simple zip file: const fs = require('fs'); const path = require('path'); const archiver = require('archiver'); const sourceFolder = 'create_zip'; // Replace with the actual folder path const zipFileName = 'output.zip'; // Create a writable stream to the zip file const output = fs.createWriteStream(zipFileName); // Create a zip archive const archive = archiver('zip
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.