Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxdeviant/glenvy

🏞️ A pleasant way to interact with your environment variables
https://github.com/maxdeviant/glenvy

dotenv gleam

Last synced: about 2 months ago
JSON representation

🏞️ A pleasant way to interact with your environment variables

Awesome Lists containing this project

README

        

# glenvy

[![Package Version](https://img.shields.io/hexpm/v/glenvy)](https://hex.pm/packages/glenvy)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glenvy/)
![Erlang-compatible](https://img.shields.io/badge/target-erlang-b83998)
![JavaScript-compatible](https://img.shields.io/badge/target-javascript-f1e05a)

🏞️ 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.get_string("HELLO"))

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

Ok(Nil)
}
```