Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 693 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 693 Bytes

glenvy

Package Version Hex Docs Erlang-compatible JavaScript-compatible

🏞️ A pleasant way to interact with your environment variables.

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)
}