https://github.com/massivefermion/enux
utility package for loading, validating and documenting your app's configuration variables from env, json, jsonc and toml files at runtime and injecting them into your environment
https://github.com/massivefermion/enux
configuration elixir elixir-lang env environment json jsonc runtime toml
Last synced: 10 days ago
JSON representation
utility package for loading, validating and documenting your app's configuration variables from env, json, jsonc and toml files at runtime and injecting them into your environment
- Host: GitHub
- URL: https://github.com/massivefermion/enux
- Owner: massivefermion
- License: apache-2.0
- Created: 2021-06-13T10:11:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T12:26:22.000Z (5 months ago)
- Last Synced: 2025-03-24T10:11:57.029Z (27 days ago)
- Topics: configuration, elixir, elixir-lang, env, environment, json, jsonc, runtime, toml
- Language: Elixir
- Homepage: https://hex.pm/packages/enux
- Size: 196 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-elixir - enux - utility package for loading, validating and documenting your app's configuration variables from env, json and jsonc files at runtime and injecting them into your environment. (Configuration)
- awesome-elixir - enux - utility package for loading, validating and documenting your app's configuration variables from env, json and jsonc files at runtime and injecting them into your environment. (Configuration)
README
# Enux
utility package for loading, validating and documenting your app's configuration variables from env, json, jsonc and toml files at runtime and injecting them into your environment
## Installation
The package can be installed by adding `enux` to your list of dependencies in `mix.exs`:
```elixir
defp deps do
[
{:enux, "~> 1.5"},# if you want to load `.jsonc` files, you should have this
# you can also use this for `.json` files
{:jsonc, "~> 0.9"},# if you want to load `.json` files, you should have either this
{:euneus, "~> 1.2"}
# or this
{:jason, "~> 1.4"}
# or this
{:jaxon, "~> 2.0"}
# or this
{:json, "~> 1.4"}
# or this
{:jsone, "~> 1.8"}
# or this
{:jsonrs, "~> 0.3"}
# or this
{:poison, "~> 5.0"}
# or this
{:thoas, "~> 1.2"}# if you want to load `.toml` files, you should have either this
{:tomerl, "~> 0.5"}
# or this
{:toml, "~> 0.7"}
]
end
```Documentation can be found at [https://hexdocs.pm/enux](https://hexdocs.pm/enux).