Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

372
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda