Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.19 KB

README.md

File metadata and controls

65 lines (45 loc) · 1.19 KB

ezgzip - Simple gzip (de)compression library

CI checks

ezgzip is a simple interface focused on string -> string zlib and gzip (de)compression.

Documentation is available here.

An example illustrating how to gzip compress and then decompress a string:

open Rresult

let () =
  let original = "Hello world" in
  let compressed = Ezgzip.compress original in
  let decompressed = R.get_ok (Ezgzip.decompress compressed) in
  assert (original = decompressed)

This library currently uses the zlib bindings provided by camlzip. The gzip header/footer code is based on the upstream specification.

Compile

make

Load an interactive environment for testing

make repl

The library will be available from this environment.

Run tests

make test

Run benchmarks

make benchmark

Build documentation

make doc

Upload documentation to github pages

NOTE: This requires push permissions to the repository...

make gh-pages