没有合适的资源?快使用搜索试试~ 我知道了~
env-conf-loader:使用 env 自动加载配置文件
共10个文件
yml:3个
md:2个
js:2个
需积分: 10 0 下载量 156 浏览量
2021-06-25
10:40:47
上传
评论
收藏 5KB ZIP 举报
温馨提示
env-conf-loader 为什么? 从文件/目录加载配置文件,并通过对象的键和环境变量合并对象。 安装 npm install env-conf-loader 用法 var loader = require ( 'env-conf-loader' ) 加载一个json文件 foo.json { " bar " : 0 , " default " : { " bar " : 1 }, " production " : { " bar " : 2 , }, " development " : { " bar " : 3 , } } var conf = loader ( './foo.json' ) // NODE_ENV is undefined console . log ( conf . bar ) // 1 // NODE_ENV is producti
资源推荐
资源详情
资源评论
收起资源包目录
env-conf-loader-master.zip (10个子文件)
env-conf-loader-master
.travis.yml 38B
index.js 1KB
package.json 556B
test
index.js 651B
README.zh-CN.md 2KB
configs
data
redis.yml 196B
mysql.json 89B
foo.yml 88B
.gitignore 13B
README.md 2KB
共 10 条
- 1
资源评论
初見目
- 粉丝: 19
- 资源: 4594
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功