/stream_gzip

Gzip or gunzip an Elixir stream

Primary LanguageElixirGNU General Public License v3.0GPL-3.0

Actions Status Coverage Status Hex.pm

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