Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpil/envoy
📂 A zero dependency cross platform Gleam package for reading environment variables
https://github.com/lpil/envoy
Last synced: 21 days ago
JSON representation
📂 A zero dependency cross platform Gleam package for reading environment variables
- Host: GitHub
- URL: https://github.com/lpil/envoy
- Owner: lpil
- Created: 2023-12-22T12:31:29.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T10:22:46.000Z (about 2 months ago)
- Last Synced: 2024-10-25T08:46:52.828Z (about 2 months ago)
- Language: Gleam
- Size: 4.88 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-gleam - envoy - [📚](https://hexdocs.pm/envoy/) - A zero dependency cross platform Gleam package for reading environment variables (Packages / Configuration)
README
# envoy
A zero dependency cross platform Gleam package for reading environment variables.
[![Package Version](https://img.shields.io/hexpm/v/envoy)](https://hex.pm/packages/envoy)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/envoy/)```sh
gleam add envoy
``````gleam
import envoypub 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
.(OK I lied, it has one dep. The standard library so we can use `Dict` for `all`).