12 lines
149 B
JavaScript
12 lines
149 B
JavaScript
'use strict';
|
|
|
|
const tar = require('tar');
|
|
|
|
async function untar(file, path) {
|
|
await tar.x({
|
|
file,
|
|
C: path
|
|
});
|
|
}
|
|
|
|
exports.untar = untar;
|