Skip to content
/ envoy Public

๐Ÿ“‚ A zero dependency cross platform Gleam package for reading environment variables

Notifications You must be signed in to change notification settings

lpil/envoy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

envoy

A zero dependency cross platform Gleam package for reading environment variables.

Package Version Hex Docs

gleam add envoy
import envoy

pub fn main() {
  // Get an environment variable
  envoy.get("PORT")

  // Set an environment variable
  envoy.set("PORT", "8080")

  // Unset an environment variable
  envoy.unset("PORT")

  // Get all environment variables
  envoy.all()
}

That's pretty much it, but documentation can be found at https://hexdocs.pm/envoy.

(OK I lied, it has one dep. The standard library so we can use Dict for all).

About

๐Ÿ“‚ A zero dependency cross platform Gleam package for reading environment variables

Resources

Stars

Watchers

Forks

Packages

No packages published