gzlib
gleam add gzlib@2
import gzlib
pub fn main() {
let data = <<1, 2, 3, 4, 5>>
let assert Ok(compressed_data) = gzlib.compress(data)
let assert Ok(more_compressed_data) = gzlib.compress_custom(data, 3)
let assert Ok(decompressed_data) = gzlib.uncompress(compressed_data)
let assert Ok(crc) = gzlib.crc32(data)
}
Further documentation can be found at https://hexdocs.pm/gzlib.
Development
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell