https://github.com/maxdeviant/glenvy
🏞️ A pleasant way to interact with your environment variables
https://github.com/maxdeviant/glenvy
dotenv gleam
Last synced: 4 months ago
JSON representation
🏞️ A pleasant way to interact with your environment variables
- Host: GitHub
- URL: https://github.com/maxdeviant/glenvy
- Owner: maxdeviant
- License: mit
- Created: 2023-05-29T19:52:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-03T21:09:26.000Z (7 months ago)
- Last Synced: 2025-06-30T09:43:20.911Z (5 months ago)
- Topics: dotenv, gleam
- Language: Gleam
- Homepage: https://hexdocs.pm/glenvy
- Size: 60.5 KB
- Stars: 18
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gleam - glenvy - [📚](https://hexdocs.pm/glenvy/) - A pleasant way to interact with your environment. (Packages / Configuration)
README
# glenvy
[](https://hex.pm/packages/glenvy)
[](https://hexdocs.pm/glenvy/)


🏞️ A pleasant way to interact with your environment variables.
## Installation
```sh
gleam add glenvy
```
## Usage
```gleam
import gleam/io
import gleam/result.{try}
import glenvy/dotenv
import glenvy/env
pub fn main() {
let _ = dotenv.load()
use hello <- try(env.string("HELLO"))
io.println("HELLO=" <> hello)
Ok(Nil)
}
```