A native configuration library for MoonBit: declare once, gather from many sources.
moon add MuVirus/moonfigimport {
"MuVirus/moonfig/core" @config,
"MuVirus/moonfig/core/format/json_format" @jsonfmt,
}| Package | Contents |
|---|---|
| core | Value, Config, merge rules, extraction, validation |
| core/format/json_format | JSON text → Value |
| core/format/ini_format | INI text → Value |
| core/format/dotenv_format | .env text → Value |
| file_source | read a file through a Format |
| env_source | process environment variables |
| cli_source | command-line arguments |
| format_detect | suffix first, content sniffing second |
| hot_reload | poll files and replace the snapshot |
| You read | Add |
|---|---|
| TOML | moon add MuVirus/moonfig-toml |
| YAML | moon add MuVirus/moonfig-yaml |
| XML | moon add MuVirus/moonfig-xml |
| CBOR | moon add MuVirus/moonfig-cbor |
| serde-based extraction | moon add MuVirus/moonfig-serde |
Install
Download zipA native configuration library for MoonBit: declare once, gather from many sources.