DenReg/tar/src/mod_test.ts
2020-07-26 13:18:06 +02:00

14 lines
434 B
TypeScript

import { compress, uncompress } from "./mod.ts";
console.log("Compressing (excludeSrc:false)");
await compress("demo", "demo.tar");
console.log("Decompressing (excludeSrc:false)");
await uncompress("demo.tar", "demo-unpacked");
console.log("Compressing (excludeSrc:true)");
await compress("demo", "demo2.tar", { excludeSrc: true });
console.log("Decompressing (excludeSrc:true)");
await uncompress("demo2.tar", "demo2-unpacked");