Re:Node.js 20.6.0 will include built-in support for .env files
by SOLAR_FIELDS on Friday August 18, 2023 @10:29AM
(#37176144)
No, python_dotenv allows some rudimentary templating in the .env file. So it’s not just specifying env vars
Re:Node.js 20.6.0 will include built-in support for .env files
by dubcanada on Friday August 18, 2023 @10:40AM
(#37176294)
That's silly, but I don't think that's solved by a spec. Even with specs there is still JSON-LD, JSON 2.0, JSON API, etc.
Re:Node.js 20.6.0 will include built-in support for .env files
by SahAssar on Friday August 18, 2023 @12:35PM
(#37178152)
Nitpick: JSON 2.0 is not a thing. JSON is versionless, maybe you are thinking of JSON5 (which is not a version, it's a superset of JSON with ECMAscript 5 features) or JSONC (also not a version, also a superset of JSON, but this time with comments). JSON-LD and JSON-API are both specs for the contents of JSON, not the dataformat itself.
Re:Node.js 20.6.0 will include built-in support for .env files
by panzi on Friday August 18, 2023 @01:27PM
(#37179088)
Different dotenv implementations disagree on weather quoting is possible (with quoting comes multi line support). There is more opportunity for disagreement, like weather comments are supported or empty lines are ignored. But all that I used support comments and empty lines (though not all of them support quoted values).
Re:Node.js 20.6.0 will include built-in support for .env files
by Too on Saturday August 19, 2023 @04:09AM
(#37186636)
There is no such thing as a spec for setting “regular” environment variables.
Well there is but that’s a much deeper concept in Linux, than what most people get exposed to, in the execve family of functions, where it is defined in C as an array of strings with the key separated from value only by =.
Unless you refer to how to do it in shell. That wouldn’t be applicable to a configuration language. Shell has a lot richer syntax and more complex logic, allowing variable templating and even running processes inside a string definition using $(). All the quoting rules around that must be different.
So the spec is the same as regular environment variables?