Compress and decompress data using various algorithms.
Add z_stream to your list of dependencies in mix.exs:
defdepsdo[{:z_stream,git: "https://github.com/coherentpath/z_stream",tag: "v*.*.*"}]endCompression algorithms are implemented as modules that adhere to the ZStream
behaviour. Simply pass in the module to the main ZStream.compress/2 and
ZStream.decompress/2 functions.
aliasZStream.LZ4data=["foo","bar","baz"]data=ZStream.compress(data,LZ4)data=ZStream.decompress(data,LZ4)Enum.into(data,"")As of now, the following compression algorithms are available: