Skip to content

zod-envkit


checkEnv(meta, env?): EnvCheckResult

Defined in: env.ts:118

Validate env against meta.

This is a pure helper used by the CLI (and can be used in apps/CI too).

Note: ok here means:

  • no missing required vars
  • no unknown vars

The CLI may choose to ignore unknown unless --strict is enabled.

If you want "missing only" checks, use getMissingEnv.

Parameters

meta

EnvMeta

env?

ProcessEnv = process.env

Returns

EnvCheckResult

Since

1.2.0

Released under the MIT License.