port

Validate port values.

Usage

An integer from 0 through 65535.

env "PORT", type: "port"

Validation leaves the value as a string. Encryption and redaction remain enabled by default; add encrypted: false to permit plaintext and redacted: false to permit output visibility.

Use min and max to narrow the allowed range.