Amber 🧡

Package Version Hex Docs Deno >= 2.2.10

✨🦕 Deno Bindings For Gleam 🧡

Installation

gleam add amber

Amber only supports the JavaScript target using the Deno runtime.

The following configuration should be used in your gleam.toml.

target = "javascript"

[javascript]
runtime = "deno"

Usage

import amber
import gossamer/text_encoder

pub fn main() {
  let assert Ok(_) =
    amber.write_file_sync(
      to: "amber.txt",
      contents: text_encoder.encode("deno bindings for gleam"),
    )
}

Further documentation can be found at https://hexdocs.pm/amber.

Contributing

Prerequisites

Tip: These can also be installed via mise or asdf, which read from .tool-versions.

Initial Setup

just

Development

just watch build test
Search Document