Node.js 20.6 adds built-in support for .env files
Briefly

Node.js 20.6 added built-in support for .env files, eliminating the need for third-party packages. This feature allows direct loading of environment variables, streamlining the process.
Despite the advantages of native support for .env files, there are limitations. Order matters when passing the env file before the file name in the command. This small detail is crucial for proper execution.
Certain caveats exist with Node.js 20.6's .env support. Limitations include no multiline support, system environment variable precedence over file values, lack of variable expansion, and absence of .env.vault support for encryption.
Read at Wisdom Geek
[
add
]
[
|
|
]