Skip to content

zod-envkit


isSecretKey(key): boolean

Defined in: env.ts:98

Detect whether an env key name looks like a secret.

Used by the CLI to mask values (e.g. SECRET, PASSWORD, TOKEN, *_KEY, connection strings). Matching is case-insensitive (key is normalized to uppercase).

Parameters

key

string

Returns

boolean

Since

1.2.0

Released under the MIT License.