About env variable formatter
Tidy a messy .env file by trimming spaces, upper-casing names and removing duplicates.
Common problems
- Spaces around the = sign, which some loaders do not accept.
- Duplicate keys where the last one silently wins.
- Unquoted values containing spaces or #.
A worked example
A messy file with ' api_key = abc ' and a repeated PORT=3000 line becomes API_KEY=abc and one PORT entry. The tool trims spaces, upper-cases names and removes duplicates, which stops confusing bugs where an older value silently wins.
Check afterwards
- Confirm that values with special characters are still quoted.
- Compare with your .env.example so no variable is missing.
- Never paste real production secrets into a website. Use dummy values here.
Comments and blank lines
Lines starting with # are comments and are kept. Blank lines are harmless, but the formatter can remove extra ones to keep the file tidy.
