UNPKG

224 BJavaScriptView Raw
1const tar = require("tar");
2const path = require("path");
3const tarball = path.resolve(process.argv[2]);
4const dirname = path.resolve(process.argv[3]);
5
6tar.extract({
7 sync: true,
8 file: tarball,
9 cwd: dirname,
10});