Skip to content

Compress and decompress data using various algorithms.

Notifications You must be signed in to change notification settings

coherentpath/z_stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZStream

Compress and decompress data using various algorithms.

Installation

Add z_stream to your list of dependencies in mix.exs:

def deps do
  [
    {:z_stream, git: "https://github.com/coherentpath/z_stream", tag: "v*.*.*"}
  ]
end

Usage

Compression 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.

alias ZStream.LZ4

data = ["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:

About

Compress and decompress data using various algorithms.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages