README.md
# 🍀 Gleam erlang library.
Erlang library to gleam by @gleam-br.
[](https://hex.pm/packages/gbr_erl)
[](https://hexdocs.pm/gbr_erl/)
```sh
gleam add gbr_erl@1
```
Example: Zip files only in memory:
```gleam
import gbr/erl
import gbr/erl/zip
pub fn main() -> Nil {
let zip =
erl.zip("compact.zip", ["./src/erl/zip.gleam"])
|> zip.memory()
|> zip.comment("Comment zip file")
|> zip.cwd(".")
|> zip.zip()
case zip {
Ok(zip.File(name, binary)) -> {
todo
//let converted = bytes_tree.from_string(binary)
//wisp.response(200)
//|> wisp.file_download_from_memory(name, converted)
}
Error(_error) -> {
todo
//wisp.internal_server_error()
}
}
}
```
Further documentation can be found at <https://hexdocs.pm/gbr_erl>.
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```
## 🌄 Roadmap
- [x] First fn `erl.zip` ✒️
- [x] and type `zip.Zip` 🎨
- [x] and more `zip.*` 🔧
- [ ] Unit tests
- [ ] More docs
- [x] GH workflow
- [x] test & build
- [x] changelog & issue to doc
- [x] ~~auto publish~~ manual publish
- [x] `gleam publish`