lzfsec
lzfsec
A pure-Go CLI wrapper around go-compressions/lzfse — Apple’s
LZFSE / LZVN compression formats on the command line.
Repository →
Commands
lzfsec [-v] compress [-i input] [-o output]
lzfsec [-v] decompress [-i input] [-o output]-i/--inputdefaults to stdin.-o/--outputdefaults to stdout.-v/--verbose(persistent) prints a summary line to stderr with byte counts, compression ratio (forcompress), and elapsed time:compressed 65536 → 12345 bytes (18.8%) in 4.231ms decompressed 12345 → 65536 bytes in 1.872msWithout
-vboth sub-commands stay silent so the binary output on stdout is safe to pipe.
Examples
# Compress a file to disk.
lzfsec compress -i big.bin -o big.bin.lzfse
# Round-trip through a pipe.
cat big.bin | lzfsec compress | lzfsec decompress > restored.bin
# Show timing + ratio.
lzfsec -v compress -i big.bin -o big.bin.lzfseBuild
go build ./cmd/lzfsec # or: task buildCoverage
task test reports 100% statement coverage (cover.out) across the four
sub-packages:
| Package | Role |
|---|---|
cmd/lzfsec | main and cobra root command |
cmd/lzfsec/compress | compress sub-command |
cmd/lzfsec/decompress | decompress sub-command |
cmd/lzfsec/internal/cmdio | shared stdin/stdout/file IO helpers |
The package ships a Taskfile (task lint|build|test|ci)
used by both local development and CI; Renovate auto-merges patch/minor gomod
updates.
License
BSD-3-Clause.