unzip 的同步版本,解压 zip 文件。
unzip
要解压的 zip 文件路径。
要解压到的目标文件夹路径。
解压操作的结果。
const result = unzipSync('/path/to/archive.zip', '/path/to/output');if (result.isOk()) { console.log('解压成功');} Copy
const result = unzipSync('/path/to/archive.zip', '/path/to/output');if (result.isOk()) { console.log('解压成功');}
unzip的同步版本,解压 zip 文件。