glenvy

Package Version Hex Docs

🏞️ A pleasant way to interact with your environment.

Installation

gleam add glenvy

Usage

import gleam/io
import gleam/result.{try}
import glenvy/dotenv
import glenvy/env

pub fn main() {
 let _ = dotenv.load()

 use hello <- try(env.get_string("HELLO"))

 io.println("HELLO=" <> hello)

 Ok(Nil)
}

Targets

glenvy supports both targets: Erlang and JavaScript.

Search Document