These libraries are experimental. APIs may change without notice. Generated from source on 7/31/2026.
GZip
@korulang/gzip - Gzip compression for Koru
@koru/gzip
@korulang/gzip - Gzip compression for Koru
Wraps zlib (the industry standard) for gzip compression/decompression.
Works at both compile-time and runtime.
USAGE:
~import koru/gzip
~koru/gzip:compress(data: my_bytes, allocator: alloc)
| compressed c |> // c.data is gzipped, c.original_size for stats
| error e |> // e is the []const u8 error message directly
~koru/gzip:decompress(data: gzipped, allocator: alloc)
| decompressed d |> // d is the []const u8 original content directly
| error e |> ...