@lucid-softworks/config-loader
v0.1.0
Published
Layered source orchestration, interpolation, validation, and provenance.
Maintainers
Readme
@lucid-softworks/config-loader
The orchestration boundary for layered configuration. Sources merge in the provided low-to-high precedence order with provenance, then interpolate and validate once against a Lucid schema.
const loaded = await loadConfig(configSchema, [
defaults,
jsonFile,
environment,
commandLine,
overrides,
]);
loaded.value;
getLoadedConfigOrigin(loaded, ["server", "port"]);Source failures identify the source. Validation errors retain the complete
structured SchemaError as their cause.
