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

265
Vistas
Unzipping 3MF Files in Javascript

I am new to javascript and i wanted to achieve a task of unzipping 3mf files for my project. Here is the below code which i am trying.

LocalConverter.prototype.unzip3MFTextures = async function(fileToUnpack){
    const self = this;
    return new Promise(function(resolve, reject) {
        yauzl.open(fileToUnpack, function(err, zipfile) {
            if (err) throw err;
            zipfile.on("error", function(err) {
            throw err;
            });
            zipfile.on("entry", function(entry) {
            console.log(entry);
            console.log(entry.getLastModDate());
            if (/\/$/.exec(entry)) return;
            zipfile.openReadStream(entry, function(err, readStream) {
                if (err) throw err;
                readStream.pipe(process.stdout);
            });
            });
        }); 
    });
}

I am not able to extract the files in the 3MF file. Can anyone please suggest me a way to fix this?

about 4 years ago · Santiago Trujillo
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