编程 API
【Programmatic APIs】
以下两个函数允许你直接与 .env 文件进行交互:
【There following two functions allow you to directly interact with .env files:】
process.loadEnvFile会加载.env文件,并使用其中的变量填充process.envutil.parseEnv解析.env文件的行内容,并以对象的形式返回其值
【Programmatic APIs】
以下两个函数允许你直接与 .env 文件进行交互:
【There following two functions allow you to directly interact with .env files:】
process.loadEnvFile 会加载 .env 文件,并使用其中的变量填充 process.envutil.parseEnv 解析 .env 文件的行内容,并以对象的形式返回其值