Function: formatAsEnvExample()
ts
function formatAsEnvExample(schema, prefix?): string;Defined in: schemaFormatters.ts:90
Formats the schema as a .env.example file
Parameters
| Parameter | Type | Description |
|---|---|---|
schema | ExportedSchema | The exported schema |
prefix? | string | Optional prefix for environment variable names (e.g., 'MYAPP') |
Returns
string
The .env.example file content as a string