Skip to content

🏞️ A pleasant way to interact with your environment variables

License

Notifications You must be signed in to change notification settings

maxdeviant/glenvy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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