25.0.0-beta.3 • Published 10 months ago
@contextjs/configuration v25.0.0-beta.3
@contextjs/configuration
Lightweight configuration system for ContextJS applications, featuring async providers and environment variable support.
Features
- Fluent API for configuring providers
- Async-based configuration loading
- Support for environment variables
- Pluggable provider model
- Seamless integration with
Applicationvia.useConfiguration()
Installation
npm i @contextjs/configurationQuick Start
import { Application } from "@contextjs/system";
import "@contextjs/configuration";
const app = new Application();
app.useConfiguration(options => {
options.useEnvironmentVariables();
options.useProvider({
async getValueAsync(key) {
if (key === "App:Port")
return 3000;
return null;
}
});
});
const port = await app.configuration.getValueAsync("App:Port");API Reference
For detailed API documentation, please refer to the API Reference.
Testing
All features are covered by 100% unit test coverage, ensuring reliability, correctness, and long-term maintainability - so you can focus on building, not debugging.
25.0.0-beta.3
10 months ago
25.0.0-beta.2
10 months ago
25.0.0-beta.1
10 months ago
0.5.3-alpha.1
10 months ago
0.5.2-alpha.1
10 months ago
0.5.1-alpha.1
11 months ago
0.5.0-alpha.1
11 months ago
0.4.8
11 months ago
0.4.7
11 months ago
0.4.6
12 months ago
0.4.5
12 months ago
0.4.4
12 months ago
0.4.3
12 months ago
0.4.2
12 months ago
0.4.1
12 months ago
0.4.0
12 months ago
0.3.0
12 months ago
0.2.3
12 months ago