Skip to content

zod-envkit


checkEnv(meta, env): EnvCheckResult

Defined in: env.ts:104

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 (because this function is strict by definition)

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

Parameters

meta

EnvMeta

env

ProcessEnv = process.env

Returns

EnvCheckResult

Since

1.1.0

Released under the MIT License.