Single-file compression algorithms: zstd, xz, bzip2.
Summary
Functions
Compresses a single file with the specified algorithm. Replaces the original with the compressed version.
Decompresses a single file. Algorithm auto-detected from extension.
Types
Functions
@spec compress(binary(), single_algo()) :: {:ok, binary()} | {:error, binary()}
Compresses a single file with the specified algorithm. Replaces the original with the compressed version.
@spec decompress(binary(), single_algo()) :: {:ok, binary()} | {:error, binary()}
Decompresses a single file. Algorithm auto-detected from extension.