Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxdeviant/glenvy
🏞️ A pleasant way to interact with your environment variables
https://github.com/maxdeviant/glenvy
dotenv gleam
Last synced: 7 days 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 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-01T00:06:41.000Z (3 months ago)
- Last Synced: 2024-10-07T07:57:13.865Z (about 1 month ago)
- Topics: dotenv, gleam
- Language: Gleam
- Homepage: https://hexdocs.pm/glenvy
- Size: 67.4 KB
- Stars: 16
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
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
[![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/envpub fn main() {
let _ = dotenv.load()use hello <- try(env.get_string("HELLO"))
io.println("HELLO=" <> hello)
Ok(Nil)
}
```