--- title: "@std/tar" description: "Streaming utilities for working with tar archives." jsr: jsr:@std/tar pkg: tar version: 0.1.10 generated: true stability: unstable --- :::info Unstable This @std package is experimental and its API may change without a major version bump. ::: ## Overview
Streaming utilities for working with tar archives.
Files are not compressed, only collected into the archive.
```js import { UntarStream } from "@std/tar/untar-stream"; import { dirname, normalize } from "@std/path"; for await ( const entry of (await Deno.open("./out.tar.gz")) .readable .pipeThrough(new DecompressionStream("gzip")) .pipeThrough(new UntarStream()) ) { const path = normalize(entry.path); await Deno.mkdir(dirname(path), { recursive: true }); await entry.readable?.pipeTo((await Deno.create(path)).writable); } ``` ### Add to your project ```sh deno add jsr:@std/tar ``` See all symbols in @std/tar on