Skip to main content

@std/tar@0.1.4
Built and signed on GitHub Actions

UNSTABLE: Streaming utilities for working with tar archives.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
94%
Published
2 days ago (0.1.4)

Streaming utilities for working with tar archives.

Files are not compressed, only collected into the archive.

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);
}
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@std/tar

Import symbol

import * as tar from "@std/tar";

---- OR ----

Import directly with a jsr specifier

import * as tar from "jsr:@std/tar";

Add Package

npx jsr add @std/tar

Import symbol

import * as tar from "@std/tar";

Add Package

yarn dlx jsr add @std/tar

Import symbol

import * as tar from "@std/tar";

Add Package

pnpm dlx jsr add @std/tar

Import symbol

import * as tar from "@std/tar";

Add Package

bunx jsr add @std/tar

Import symbol

import * as tar from "@std/tar";