@jsango/config
v1.3.0
Published
Configuration loading, validation and environment abstraction for jsango
Downloads
2,784
Readme
@jsango/config
Centralized, immutable configuration provider with type casting and schema validation.
Part of the jsango backend framework for TypeScript.
Installation
pnpm add @jsango/configUsage
import { ConfigProvider } from '@jsango/config';
const config = new ConfigProvider({
APP_ENV: process.env.NODE_ENV || 'development',
PORT: Number(process.env.PORT) || 3000,
});
const port = config.get('PORT');Documentation
For full architecture documentation and guides, visit the jsango documentation.
License
MIT © jsango contributors
