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

291
Views
how can we compress a folder of our system using nodeJs with less memory

please help me with suitable solution creating .zip file for a folder with less size.

var FolderZip= require("folder-zip");
 var options = {
excludeParentFolder: true, 
parentFolderName: 'v1.0' 
};

//zip a folder and change folder destination name
var zip = new FolderZip();
zip.zipFolder('./ExpressJs_sqlite3', options, function(){
zip.writeToFile('myfolder.zip');
});
/**it working properly but generated myfolder.zip size is more than the size 
of folder ExpressJs_sqlite3 
please help me with suitable solution creating .zip file for a folder with 
less size.
kindly requesting you please dont put negative votes. It blocks me asking 
more questions am a new learner need your help. **/
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

yes... I got a solution. using npm install easy-zip

//compress.js
var EasyZip = require('easy-zip').EasyZip;
var zip = new EasyZip();
 //zip a folder 
zip.zipFolder('D:/sourav/sample/CRUD ExpressJs_sqlite3',function(){
zip.writeToFile('D:/sourav/sample/CRUD ExpressJs_sqlite3.zip');
});
over 4 years ago · Santiago Trujillo Report
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!