|
22 | 22 |
|
23 | 23 | ## Cmdlets |
24 | 24 |
|
25 | | -### Zip Archive Cmdlets |
26 | | - |
27 | | -<table> |
28 | | - <tr> |
29 | | - <th>Cmdlet</th> |
30 | | - <th>Alias</th> |
31 | | - <th>Description</th> |
32 | | - </tr> |
33 | | - <tr> |
34 | | - <td colspan="1" width="220"><a href="docs/en-US/Compress-ZipArchive.md">Compress-ZipArchive</a></td> |
35 | | - <td><code>zipcompress</code></td> |
36 | | - <td>Compresses files and folders into a zip archive, overcoming built-in PowerShell limitations.</td> |
37 | | - </tr> |
38 | | - <tr> |
39 | | - <td><a href="docs/en-US/Expand-ZipEntry.md">Expand-ZipEntry</a></td> |
40 | | - <td><code>unzipentry</code></td> |
41 | | - <td>Extracts individual zip entries to a destination directory.</td> |
42 | | - </tr> |
43 | | - <tr> |
44 | | - <td><a href="docs/en-US/Get-ZipEntry.md">Get-ZipEntry</a></td> |
45 | | - <td><code>zipge</code></td> |
46 | | - <td>Lists zip archive entries from paths or streams, serving as the entry point for zip cmdlets.</td> |
47 | | - </tr> |
48 | | - <tr> |
49 | | - <td><a href="docs/en-US/Get-ZipEntryContent.md">Get-ZipEntryContent</a></td> |
50 | | - <td><code>zipgec</code></td> |
51 | | - <td>Retrieves the content of zip entries as text or bytes.</td> |
52 | | - </tr> |
53 | | - <tr> |
54 | | - <td><a href="docs/en-US/New-ZipEntry.md">New-ZipEntry</a></td> |
55 | | - <td><code>zipne</code></td> |
56 | | - <td>Adds new entries to a zip archive from files or paths.</td> |
57 | | - </tr> |
58 | | - <tr> |
59 | | - <td><a href="docs/en-US/Remove-ZipEntry.md">Remove-ZipEntry</a></td> |
60 | | - <td><code>ziprm</code></td> |
61 | | - <td>Removes entries from one or more zip archives.</td> |
62 | | - </tr> |
63 | | - <tr> |
64 | | - <td><a href="docs/en-US/Rename-ZipEntry.md">Rename-ZipEntry</a></td> |
65 | | - <td><code>zipren</code></td> |
66 | | - <td>Renames entries in one or more zip archives.</td> |
67 | | - </tr> |
68 | | - <tr> |
69 | | - <td><a href="docs/en-US/Set-ZipEntryContent.md">Set-ZipEntryContent</a></td> |
70 | | - <td><code>zipsc</code></td> |
71 | | - <td>Sets or appends content to a zip entry.</td> |
72 | | - </tr> |
73 | | -</table> |
| 25 | +### Zip Archive |
| 26 | + |
| 27 | +- [__`Compress-ZipArchive`__](docs/en-US/Compress-ZipArchive.md) — Compresses files and folders into a zip archive, overcoming built-in PowerShell limitations. |
| 28 | +- [__`Expand-ZipEntry`__](docs/en-US/Expand-ZipEntry.md) — Extracts individual zip entries to a destination directory. |
| 29 | +- [__`Get-ZipEntry`__](docs/en-US/Get-ZipEntry.md) — Lists zip archive entries from paths or streams, serving as the entry point for zip cmdlets. |
| 30 | +- [__`Get-ZipEntryContent`__](docs/en-US/Get-ZipEntryContent.md) — Retrieves the content of zip entries as text or bytes. |
| 31 | +- [__`New-ZipEntry`__](docs/en-US/New-ZipEntry.md) — Adds new entries to a zip archive from files or paths. |
| 32 | +- [__`Remove-ZipEntry`__](docs/en-US/Remove-ZipEntry.md) — Removes entries from one or more zip archives. |
| 33 | +- [__`Rename-ZipEntry`__](docs/en-US/Rename-ZipEntry.md) — Renames entries in one or more zip archives. |
| 34 | +- [__`Set-ZipEntryContent`__](docs/en-US/Set-ZipEntryContent.md) — Sets or appends content to a zip entry. |
74 | 35 |
|
75 | 36 | > [!NOTE] |
76 | 37 | > Due to a .NET limitation, cmdlets like `New-ZipEntry`, `Compress-ZipArchive` with `-Update`, and `Set-ZipEntryContent` may fail when handling files or content > 2 GB __in existing zip archives__. As a workaround, recreate the zip archive or use tools like 7-Zip, which support larger files. See [issue #19](https://github.com/santisq/PSCompression/issues/19) for details. |
77 | 38 |
|
78 | | -### Tar Archive Cmdlets |
79 | | - |
80 | | -<table> |
81 | | - <tr> |
82 | | - <th>Cmdlet</th> |
83 | | - <th>Alias</th> |
84 | | - <th>Description</th> |
85 | | - </tr> |
86 | | - <tr> |
87 | | - <td colspan="1" width="220"><a href="docs/en-US/Compress-TarArchive.md">Compress-TarArchive</a></td> |
88 | | - <td><code>tarcompress</code></td> |
89 | | - <td>Compresses files and folders into a tar archive with optional compression (gz, bz2, zst, lz, none).</td> |
90 | | - </tr> |
91 | | - <tr> |
92 | | - <td><a href="docs/en-US/Expand-TarArchive.md">Expand-TarArchive</a></td> |
93 | | - <td><code>untar</code></td> |
94 | | - <td>Extracts a tar archive with support for gz, bz2, zst, lz, and uncompressed formats.</td> |
95 | | - </tr> |
96 | | - <tr> |
97 | | - <td><a href="docs/en-US/Expand-TarEntry.md">Expand-TarEntry</a></td> |
98 | | - <td><code>untarentry</code></td> |
99 | | - <td>Extracts individual tar entries to a destination directory.</td> |
100 | | - </tr> |
101 | | - <tr> |
102 | | - <td><a href="docs/en-US/Get-TarEntry.md">Get-TarEntry</a></td> |
103 | | - <td><code>targe</code></td> |
104 | | - <td>Lists tar archive entries from paths or streams, serving as the entry point for tar cmdlets.</td> |
105 | | - </tr> |
106 | | - <tr> |
107 | | - <td><a href="docs/en-US/Get-TarEntryContent.md">Get-TarEntryContent</a></td> |
108 | | - <td><code>targec</code></td> |
109 | | - <td>Retrieves the content of tar entries as text or bytes.</td> |
110 | | - </tr> |
111 | | -</table> |
112 | | - |
113 | | -### String Compression Cmdlets |
114 | | - |
115 | | -<table> |
116 | | - <tr> |
117 | | - <th>Cmdlet</th> |
118 | | - <th>Alias</th> |
119 | | - <th>Description</th> |
120 | | - </tr> |
121 | | - <tr> |
122 | | - <td colspan="1" width="220"><a href="docs/en-US/ConvertFrom-BrotliString.md">ConvertFrom-BrotliString</a></td> |
123 | | - <td><code>frombrotlistring</code></td> |
124 | | - <td>Decompresses a Brotli-compressed string.</td> |
125 | | - </tr> |
126 | | - <tr> |
127 | | - <td><a href="docs/en-US/ConvertFrom-DeflateString.md">ConvertFrom-DeflateString</a></td> |
128 | | - <td><code>fromdeflatestring</code></td> |
129 | | - <td>Decompresses a Deflate-compressed string.</td> |
130 | | - </tr> |
131 | | - <tr> |
132 | | - <td><a href="docs/en-US/ConvertFrom-GzipString">ConvertFrom-GzipString</a></td> |
133 | | - <td><code>fromgzipstring</code></td> |
134 | | - <td>Decompresses a Gzip-compressed string.</td> |
135 | | - </tr> |
136 | | - <tr> |
137 | | - <td><a href="docs/en-US/ConvertFrom-ZlibString.md">ConvertFrom-ZlibString</a></td> |
138 | | - <td><code>fromzlibstring</code></td> |
139 | | - <td>Decompresses a Zlib-compressed string.</td> |
140 | | - </tr> |
141 | | - <tr> |
142 | | - <td><a href="docs/en-US/ConvertTo-BrotliString.md">ConvertTo-BrotliString</a></td> |
143 | | - <td><code>tobrotlistring</code></td> |
144 | | - <td>Compresses a string using Brotli.</td> |
145 | | - </tr> |
146 | | - <tr> |
147 | | - <td><a href="docs/en-US/ConvertTo-DeflateString.md">ConvertTo-DeflateString</a></td> |
148 | | - <td><code>todeflatestring</code></td> |
149 | | - <td>Compresses a string using Deflate.</td> |
150 | | - </tr> |
151 | | - <tr> |
152 | | - <td><a href="docs/en-US/ConvertTo-GzipString.md">ConvertTo-GzipString</a></td> |
153 | | - <td><code>togzipstring</code></td> |
154 | | - <td>Compresses a string using Gzip.</td> |
155 | | - </tr> |
156 | | - <tr> |
157 | | - <td><a href="docs/en-US/ConvertTo-ZlibString.md">ConvertTo-ZlibString</a></td> |
158 | | - <td><code>tozlibstring</code></td> |
159 | | - <td>Compresses a string using Zlib.</td> |
160 | | - </tr> |
161 | | -</table> |
| 39 | +### Tar Archive |
| 40 | + |
| 41 | +- [__`Compress-TarArchive`__](docs/en-US/Compress-TarArchive.md) — Compresses files and folders into a tar archive with optional compression (gz, bz2, zst, lz, none). |
| 42 | +- [__`Expand-TarArchive`__](docs/en-US/Expand-TarArchive.md) — Extracts a tar archive with support for gz, bz2, zst, lz, and uncompressed formats. |
| 43 | +- [__`Expand-TarEntry`__](docs/en-US/Expand-TarEntry.md) — Extracts individual tar entries to a destination directory. |
| 44 | +- [__`Get-TarEntry`__](docs/en-US/Get-TarEntry.md) — Lists tar archive entries from paths or streams. |
| 45 | +- [__`Get-TarEntryContent`__](docs/en-US/Get-TarEntryContent.md) — Retrieves the content of tar entries as text or bytes. |
| 46 | + |
| 47 | +### String Compression |
| 48 | + |
| 49 | +- [__`ConvertFrom-BrotliString`__](docs/en-US/ConvertFrom-BrotliString.md) — Decompresses a Brotli-compressed string. |
| 50 | +- [__`ConvertFrom-DeflateString`__](docs/en-US/ConvertFrom-DeflateString.md) — Decompresses a Deflate-compressed string. |
| 51 | +- [__`ConvertFrom-GzipString`__](docs/en-US/ConvertFrom-GzipString.md) — Decompresses a Gzip-compressed string. |
| 52 | +- [__`ConvertFrom-ZlibString`__](docs/en-US/ConvertFrom-ZlibString.md) — Decompresses a Zlib-compressed string. |
| 53 | +- [__`ConvertTo-BrotliString`__](docs/en-US/ConvertTo-BrotliString.md) — Compresses a string using Brotli. |
| 54 | +- [__`ConvertTo-DeflateString`__](docs/en-US/ConvertTo-DeflateString.md) — Compresses a string using Deflate. |
| 55 | +- [__`ConvertTo-GzipString`__](docs/en-US/ConvertTo-GzipString.md) — Compresses a string using Gzip. |
| 56 | +- [__`ConvertTo-ZlibString`__](docs/en-US/ConvertTo-ZlibString.md) — Compresses a string using Zlib. |
162 | 57 |
|
163 | 58 | > [!NOTE] |
164 | 59 | > The `Compress-GzipArchive` and `Expand-GzipArchive` cmdlets have been removed, as their single-file gzip functionality is now handled by `Compress-TarArchive` and `Expand-TarArchive`. For a workaround to compress or decompress single files using gzip, see [Example 2 in `ConvertTo-GzipString`](./docs/en-US/ConvertTo-GzipString.md#example-2-create-a-gzip-compressed-file-from-a-string). |
|
0 commit comments