Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

358
Views
minizip-asm returns an empty zip file

I can't find my mistake. It worked a few month ago. But now it returns an empty zip file. Also, it is not password secured. The name of the generated zip file is correct. Happy for some help.

var fs = require('fs');
var Minizip = require('minizip-asm.js'); 
        
var text = new Buffer.from("Abc~~~");
var mz = new Minizip();
                    
mz.append("../data/mysqlDump.sql", text, {password: '1111'});

let zipfile= "../data/mysqlDump.zip";

fs.writeFileSync(zipfile, new Buffer.from(mz.zip()));

EDIT:

I am using now node.js jszip. It works fine. But is there a simple way to protect a zipfile with a password? Because this feature is not included with jszip. I have a linux platform. Is there a way to protect a zip file with a password?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!