UNPKG
unrar-nn-js-backup
Version:
latest (2.0.2)
2.0.2
2.0.1
Backup of unrar-promise
unrar-nn-js-backup
/
index.js
8 lines
(6 loc)
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
unrarp =
require
(
'unrar-promise'
);
// filePath = path of rar file, destinationPath is destion of directory where rar got unrar
const
unrarBackup
=
async
(
filePath, destinationPath
)=>{
await
unrarp.
unrar
(filePath, destinationPath); }
module
.
exports
= unrarBackup;