📅  最后修改于: 2022-03-11 15:03:51.753000             🧑  作者: Mango
const unrarp = require('unrar-promise');
unrarp
.extractAll('rar-file-path', 'extract-directory')
.then(result => {
cb(null, result);
})
.catch(err => {
cb(err);
});