About this tool
Convert JSON configuration to a .env file, or parse a .env file back to JSON. Nested keys are flattened to UPPER_SNAKE and values are quoted only when needed.
~/tools$ ./use
Convert JSON configuration to a .env file, or parse a .env file back to JSON. Nested keys are flattened to UPPER_SNAKE and values are quoted only when needed.
They are flattened with underscores: {"db": {"host": "x"}} becomes DB_HOST=x.
Yes — the tool works in both directions. The result is a flat JSON object since nesting cannot be reconstructed.