25.0.0-beta.3 • Published 6 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
6 months ago
25.0.0-beta.2
6 months ago
25.0.0-beta.1
6 months ago
0.5.3-alpha.1
6 months ago
0.5.2-alpha.1
6 months ago
0.5.1-alpha.1
7 months ago
0.5.0-alpha.1
7 months ago
0.4.8
7 months ago
0.4.7
8 months ago
0.4.6
8 months ago
0.4.5
8 months ago
0.4.4
8 months ago
0.4.3
8 months ago
0.4.2
8 months ago
0.4.1
8 months ago
0.4.0
8 months ago
0.3.0
8 months ago
0.2.3
8 months ago