| Crates.io | nu_plugin_compress |
| lib.rs | nu_plugin_compress |
| version | 0.2.7 |
| created_at | 2024-09-21 06:42:21.693253+00 |
| updated_at | 2025-06-15 03:10:11.44901+00 |
| description | A nushell plugin for compression and decompression, supporting zstd, gzip, bzip2, and xz. |
| homepage | https://github.com/yybit/nu_plugin_compress |
| repository | https://github.com/yybit/nu_plugin_compress |
| max_upload_size | |
| id | 1381989 |
| size | 61,105 |
A nushell plugin for compression and decompression, supporting zstd, gzip, bzip2, and xz.
Supported compression formats include:
| Type | Compress Command | Decompress Command |
|---|---|---|
| gzip | to gz | from gz |
| zstd | to zst | from zst |
| xz | to xz | from xz |
| bzip2 | to bz2 | from bz2 |
cargo install nu_plugin_compress
plugin add ~/.cargo/bin/nu_plugin_compress
plugin use compress
# compress and save
"hello" | to gz | save hello.gz
# compress with level 7, Default level is 3
"hello" | to xz -l 7
# decompress and print
open hello.gz | decode
# archive and compress
tar cvf - hello.txt | to gz | save hello.tar.gz
# decompress and unarchive
open hello.tar.gz | tar xvf -
> open hello.gz
Length: unknown (stream) | printable whitespace ascii_other non_ascii
00000000: 68 65 6c 6c 6f hello