-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tar/unstable):
@std/tar
(#5905)
* feat(tar/unstable): `@std/tar` * fix * edit
- Loading branch information
Showing
13 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
"./regexp", | ||
"./semver", | ||
"./streams", | ||
"./tar", | ||
"./testing", | ||
"./text", | ||
"./toml", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ | |
"./regexp", | ||
"./semver", | ||
"./streams", | ||
"./tar", | ||
"./testing", | ||
"./text", | ||
"./toml", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "@std/tar", | ||
"version": "0.1.0", | ||
"exports": { | ||
".": "./mod.ts", | ||
"./tar-stream": "./tar_stream.ts", | ||
"./untar-stream": "./untar_stream.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. | ||
|
||
/** | ||
* Streaming utilities for working with tar archives. | ||
* | ||
* Files are not compressed, only collected into the archive. | ||
* | ||
* ```ts no-eval | ||
* 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)); | ||
* await entry.readable?.pipeTo((await Deno.create(path)).writable); | ||
* } | ||
* ``` | ||
* | ||
* @experimental **UNSTABLE**: New API, yet to be vetted. | ||
* | ||
* @module | ||
*/ | ||
export * from "./tar_stream.ts"; | ||
export * from "./untar_stream.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.