问题:
Is there a way to read environment variables in Node.js code? 有没有办法在Node.js代码中读取环境变量?
Like for example Python's os.environ['HOME']
. 例如,例如Python的os.environ['HOME']
。
解决方案:
参考一: https://stackoom.com/question/KQzg/读取Node-js中的环境变量参考二: https://oldbug.net/q/KQzg/Read-environment-variables-in-Node-js
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/3222631