download a compressed package with dozens of js files with a size of about 2m.
found that the size is only 300k after downloading, and decompression found that it has been damaged
related codes
/ / Please paste the code text below (do not replace the code with pictures)
const downLoad = () => {
const stream = fs.createWriteStream("./downLoad/abc.zip");
request("https://xxxxx.com/downLoad/abc.zip").pipe(stream).on("close", () => {
const unzip = new adm_zip("./downLoad/abc.zip");
unzip.extractAllTo("./downLoad", /*overwrite*/true);
});
}