const AdmZip = require('adm-zip');
// Specify the path to your zip file and the destination directory
const zipFilePath = 'path/to/your/file.zip';
const destinationPath = 'path/to/extract/to';
try {
const zip = new AdmZip(zipFilePath);
zip.extractAllTo(destinationPath, /* overwrite */ true); // Set true to overwrite existing files
console.log('Extraction complete!');
} catch (error) {
console.error('Error during extraction:', error);
}