@ambrosia-unce/config
v1.0.1
Published
Type-safe environment configuration for Ambrosia framework with schema validation and zero runtime overhead
Maintainers
Readme
@ambrosia-unce/config
Type-safe environment configuration for the Ambrosia framework with schema validation and DI integration.
Installation
bun add @ambrosia-unce/configUsage
import { ConfigPack, ConfigService } from "@ambrosia-unce/config";
const AppPack = definePack({
imports: [ConfigPack],
providers: [AppService],
});
@Injectable()
class AppService {
constructor(private config: ConfigService) {}
getPort() {
return this.config.get("PORT", 3000);
}
}Documentation
Full documentation at ambrosia.dev/docs/config.
License
MIT
