effect-io-ai

Package: effect
Module: String

String.configCase

Converts a string to CONFIG_CASE (uppercase with underscores) for configuration keys.

When to use

Use to normalize configuration path segments into environment-variable-like keys while preserving numeric word groups such as v2.

Details

Unlike constantCase, digit-letter boundaries are not split. For example, "api-v2 xml" becomes "API_V2_XML".

See

Signature

declare const configCase: (self: string) => string

Source

Since v4.0.0