11 lines
224 B
JavaScript
Raw Normal View History

2022-07-07 18:23:44 +02:00
const tar = require("tar");
const path = require("path");
const tarball = path.resolve(process.argv[2]);
const dirname = path.resolve(process.argv[3]);
tar.extract({
sync: true,
file: tarball,
cwd: dirname,
});