Skip to main content

deno-tar

license stars deno version

Read and Create a TAR using Deno.

Example

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:

Create an archive

import Archive from "mod.ts";
let myTar = new Archive("archive.tar");
myTar.add("sometext.txt").add("someimg.png");
myTar.archive();

Read an archive

import { ArchiveReader } from "mod.ts";
let myTar = new ArchiveReader("archive.tar");
console.log(myTar.open());

Contributing

Contributions either in the form of pull requests or issues are always welcome.