# configure-merge **Repository Path**: wjchang/configure-merge ## Basic Information - **Project Name**: configure-merge - **Description**: 配置文件管理和合并 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-30 - **Last Updated**: 2021-03-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## A more friendly way to use config file when you have many env,let the env config to merge default config ``` npm i configure-merge --save ``` #### demo #### config/app.json ``` { "hello":"app in default" } ``` #### config/[env]/app.json ``` { "hello":"app in test" } ``` #### app.js ``` var configure = require('configure-merge'); console.log(configure.get('app')); ``` #### NODE_ENV=test node app.js #### output ``` { "hello":"app in test" } ``` ### support .js, .json, .node, .yaml, .yml ### default NODE_ENV is dev