env/mask.ts

Environment value display formatting with secret masking.

Provides utilities for safely displaying env values in logs and startup summaries, masking secrets with a placeholder.

Declarations
#

2 declarations

view source

format_env_display_value
#

env/mask.ts view source

(value: unknown, secret: boolean): string

Format an env value for display, masking secrets.

value

the env value to format

type unknown

secret

whether the value is secret and should be masked

type boolean

returns

string

display string — masked placeholder for secrets, string values as-is, non-strings JSON-stringified

MASKED_VALUE
#

Imported by
#