How to use the default function from tar

Find comprehensive JavaScript tar.default code examples handpicked from public code repositorys.

3
4
5
6
7
8
9
10
const tslib_1 = require("tslib");
const utils_fs_1 = require("@ionic/utils-fs");
const tar_1 = tslib_1.__importDefault(require("tar"));
async function extractTemplate(src, dir) {
    await utils_fs_1.mkdirp(dir);
    await tar_1.default.extract({ file: src, cwd: dir });
}
exports.extractTemplate = extractTemplate;
fork icon0
star icon0
watch icon0