📜  设置 NODE_ENV - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:51.453000             🧑  作者: Mango

代码示例5
// get an environment variableexport const token = process.env['API_TOKEN'];// set an environment variable at runtimeprocess.env['RANDOM_ID'] = Math.random();