I would like to unzip a .zip file in node without any external libraries. How would i go about doing this?
I have tried using zlib but it returns incorrect header type
let zipfile = fs.readFileSync(fileinfomation.savelocation)
zlib.gunzipSync(zipfile)
Edit I have also tried using
let zipfile = fs.readFileSync(fileinfomation.savelocation)
zlib.unzipSync(zipfile)
And it returned i caused the following error Uncaught Error Error: incorrect header check
Link to zip https://code.visualstudio.com/sha/download?build=stable&os=win32-x64-archive