Gzip or gunzip an Elixir stream
Elixir
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
test
.credo.exs
.formatter.exs
.gitignore
.travis.yml
LICENSE
README.md
mix.exs
mix.lock

README.md

StreamGzip

Gzip or gunzip a stream.

Hex.pm Build Status

Gunzip:

"x.gz"
|> File.stream!
|> StreamGzip.gunzip
|> Enum.into("")

Gzip:

"x"
|> File.stream!
|> StreamGzip.gzip
|> Stream.into(File.stream! "x.gz")
|> Stream.run

Installation

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

def deps do
  [{:stream_gzip, "~> 0.2"}]
end