Skip to main content
Home

@std/tar@0.1.6
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
4 months ago (0.1.6)

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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

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

pnpm i jsr:@std/tar
or (using pnpm 10.8 or older)
pnpm dlx jsr add @std/tar

Import symbol

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

Add Package

yarn add jsr:@std/tar
or (using Yarn 4.8 or older)
yarn dlx jsr add @std/tar

Import symbol

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

Add Package

vlt install jsr:@std/tar

Import symbol

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

Add Package

npx 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";