Repository navigation
FAQ and Troubleshooting
Every process.env value is a string, and the string "false" is truthy. env-saaf's boolean type converts it to a real false.
Without validation, a missing variable is only noticed by the first request that reads it. Validating once at startup with validateEnv turns that into one clear error at boot, listing every missing or invalid variable.
That is string concatenation. The port (and number / int) types return real numbers.
parseEnvFile (and therefore loadEnv) reports duplicate keys instead of silently keeping the last one — duplicates are almost always a editing mistake.
That is reported as an error too, rather than being silently dropped.
No. Zero dependencies is a hard project rule — see Contributing Guide.
Use Discussions for questions and ideas, and Issues for bugs.
env-saaf Wiki
Español
- Home-es
- Getting-Started-es
- CLI-Guide-es
- Types-Reference-es
- FAQ-and-Troubleshooting-es
- Contributing-Guide-es
Português
- Home-pt-br
- Getting-Started-pt-br
- CLI-Guide-pt-br
- Types-Reference-pt-br
- FAQ-and-Troubleshooting-pt-br
- Contributing-Guide-pt-br
हिंदी
- Home-hi
- Getting-Started-hi
- CLI-Guide-hi
- Types-Reference-hi
- FAQ-and-Troubleshooting-hi
- Contributing-Guide-hi
简体中文
- Home-zh-cn
- Getting-Started-zh-cn
- CLI-Guide-zh-cn
- Types-Reference-zh-cn
- FAQ-and-Troubleshooting-zh-cn
- Contributing-Guide-zh-cn