DenReg/tar/src/mod_test.ts

14 lines
434 B
TypeScript
Raw Normal View History

2020-07-26 11:18:06 +00:00
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");