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

271
Views
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
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!