@stephansama/typed-env
standard schema compatible environment validator
Table of contents
Section titled “Table of contents”Open Table of contents
Installation
Section titled “Installation”pnpm install @stephansama/typed-envimport * as z from "zod";
import { createEnvironment } from "@stephansama/typed-env";
export const config = createEnvironment( z.object({ GENERATIVE_API_KEY: z.string().trim(), OTHER_SUPER_SECRET_KEY: z.string().trim(), }),);
export async function generateExample() { return await config.generateExample(".env.example");}
export async function validateEnvironment() { return await config.validate();}Functions
Section titled “Functions”| Function | Description |
|---|---|
|
‐ |