finki-main
main
|
Last change
on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
224 bytes
|
| Rev | Line | |
|---|
| [81bc7da] | 1 | const tar = require("tar");
|
|---|
| 2 | const path = require("path");
|
|---|
| 3 | const tarball = path.resolve(process.argv[2]);
|
|---|
| 4 | const dirname = path.resolve(process.argv[3]);
|
|---|
| 5 |
|
|---|
| 6 | tar.extract({
|
|---|
| 7 | sync: true,
|
|---|
| 8 | file: tarball,
|
|---|
| 9 | cwd: dirname,
|
|---|
| 10 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.