Supported Types
Each type follows strict parsing rules to ensure data integrity.
String
Returns raw string from process.env. No parsing is performed.
Number
Uses Number(value). Throws if the result is NaN.
"3000" → 3000 ✅
"abc" → ❌ Fail: Cannot parse "abc" as numberBoolean
Strictly accepts "true", "1" (true) or "false", "0" (false). Case-insensitive.
Enum
Matches value exactly against one of the provided validValues strings.