๐Ÿ€ Gleam erlang library.

Erlang library to gleam by @gleam-br.

Package Version Hex Docs

gleam add gbr_erl@1

Example: Zip files only in memory:

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

gleam run   # Run the project
gleam test  # Run the tests

๐ŸŒ„ Roadmap

โœจ Search Document