SCREAMING_SNAKE_CASE — all uppercase with underscores — is the standard way to name constants in code and environment variables in shells and config files. This converter rewrites any phrase or identifier into that format.
How it works
The input is split into a list of word tokens, each token is uppercased, and the tokens are joined with underscores. Boundaries come from separators and from case transitions in camelCase or PascalCase input:
"max retry count" -> MAX_RETRY_COUNT
"maxRetryCount" -> MAX_RETRY_COUNT
"max-retry-count" -> MAX_RETRY_COUNT
"databaseUrl" -> DATABASE_URL
Every detected word is uppercased before joining, so the result is always a valid, uppercase, underscore-separated constant name.
Tips and notes
This format clearly signals immutability, which is why it is reserved for constants and configuration. On Unix-like systems environment variable names are case sensitive, so keeping them uppercase avoids collisions between names that differ only in case. Letters and digits are separated during tokenisation; rejoin a segment like a version number after copying if you prefer it attached.