Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 months 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-04T04:48:55.000Z (8 months ago)
- Last Synced: 2024-09-30T09:01:57.009Z (4 months ago)
- Topics: configuration, elixir, elixir-lang, env, environment, json, jsonc, runtime, toml
- Language: Elixir
- Homepage: https://hex.pm/packages/enux
- Size: 194 KB
- Stars: 3
- Watchers: 3
- 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).