Skip to content

Function: formatAsEnvExample()

ts
function formatAsEnvExample(schema, prefix?): string;

Defined in: schemaFormatters.ts:90

Formats the schema as a .env.example file

Parameters

ParameterTypeDescription
schemaExportedSchemaThe exported schema
prefix?stringOptional prefix for environment variable names (e.g., 'MYAPP')

Returns

string

The .env.example file content as a string