用JS解压文件

林一二2022年01月27日 22:01
Ref: CDDA-Kenan-Modpack-Chinese
Keywords:

npm - unzipper

const unzipper = require('unzipper');const fs = require('fs')fs.createReadStream('~/Downloads/2022_01_27_20_16_34_38a472.zip').pipe(unzipper.Extract({ path: '~/Downloads/2022_01_27_20_16_34_38a472' }));