README.md
[](https://github.com/ne-sachirou/stream_gzip/actions)
[](https://coveralls.io/github/ne-sachirou/stream_gzip)
[](https://hex.pm/packages/stream_gzip)
# StreamGzip
Gzip or gunzip a stream.
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.4"}]
end
```