@wild-framework/config
v0.1.1
Published
Typed configuration management using Zod for Wild Framework.
Readme
@wild-framework/config
Typed configuration management using Zod for Wild Framework.
Install
pnpm add @wild-framework/configUsage
import { Config } from "@wild-framework/config";
import { z } from "zod";
config.register("database", z.object({
host: z.string().default("localhost"),
port: z.coerce.number().default(5432),
}));
config.validate();
const db = config.get<{ host: string; port: number }>("database");Env vars map automatically: DATABASE_HOST → database.host.
License
MIT
