Tuesday, 25 April 2017

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. **/



via Sourav Ghadai

No comments:

Post a Comment