• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

187
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?

almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error