StreamGzip
Gzip or gunzip a stream.
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.4"}]
end