Node.js 分层配置 nconf

  • 包含文件、环境变量、命令行参数和原子对象的合并
  • 支持本地和远程存储
  • 命名空间和定界符为“:”
  • 使用方法: t1. require('nconf') t2. nconf.argv().env().file({ file: 'path/to/config.json' })
zip 文件大小:116.29KB