没有合适的资源?快使用搜索试试~ 我知道了~
getconfig:用于检测基于NODE_ENV的环境的node.js项目的配置文件阅读器
共27个文件
json:17个
js:4个
gitkeep:2个
需积分: 9 0 下载量 165 浏览量
2021-05-16
10:20:01
上传
评论
收藏 17KB ZIP 举报
温馨提示
getconfig-用于node.js的配置获取程序 为不同的环境管理配置有点麻烦。 简而言之,我希望它能够: 易于理解和使用 使用NODE_ENV环境变量来获取适当的配置 让我从应用程序中的任何地方开始const config = require('getconfig')并使用Just Work:trade_mark: 允许使用其他格式(通过要求钩子) 如何使用 npm install getconfig 在与主入口点相同的文件夹(通常是项目根目录)中创建一个config/default.json (或config/default.js ,任何您require()均可使用的文件)文件。 只需在项目的任何地方都这样要求getconfig即可: const Config = require ( 'getconfig' ) ; 就是这样! 配置在哪里以及如何命名 Getconfig在与应用程序的主入口
资源推荐
资源详情
资源评论
收起资源包目录
getconfig-master.zip (27个子文件)
getconfig-master
.gitignore 41B
package.json 553B
types.js 1KB
bin
getconfig 1KB
index.js 7KB
README.md 9KB
errors.js 2KB
test
index.js 25KB
fixtures
app
config
devel.json 20B
test.json 19B
all.json 47B
dev.json 18B
local.json 20B
badref.json 44B
reference.json 240B
default.json 22B
types.json 656B
optional.json 31B
develop.json 22B
development.json 26B
interpolate.json 51B
required.json 30B
empty
.gitkeep 0B
config
.gitkeep 0B
dots
.env 163B
config
default.json 204B
simple
config
default.json 22B
共 27 条
- 1
资源评论
羊欲穷
- 粉丝: 88
- 资源: 4591
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功