README.md
StreamGzip
==
Gzip or gunzip a stream.
[](https://hex.pm/packages/stream_gzip)
[](https://travis-ci.org/ne-sachirou/stream_gzip)
Gunzip:
```elixir
"x.gz"
|> File.stream!
|> StreamGzip.gunzip
|> Enum.into("")
```
Gzip:
```elixir
"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`:
```elixir
def deps do
[{:stream_gzip, "~> 0.3"}]
end
```