Archived in favour of https://deno.land/std/archive/tar.ts
Read and Create a TAR using Deno.
Run the following code with the -A
and --unstable
(and -r
if you have
used this module before) flags enabled to get the example shown above:
import Archive from "mod.ts";
let myTar = new Archive("archive.tar");
myTar.add("sometext.txt").add("someimg.png");
myTar.archive();
import { ArchiveReader } from "mod.ts";
let myTar = new ArchiveReader("archive.tar");
console.log(myTar.open());
Contributions either in the form of pull requests or issues are always welcome.