best-config
Each app can has different server configurations, the goal of this module is manage themInstallation
npm install best-config --save
Example
Basic usage
const config = file: 'config1'; console; //=> bar //Custom path "config" folderconst config = file: 'config1' path: './custom/your-folder'; //Add configuration to global file: 'config1' addToGlobalWithName: '_MY_CONFIG_'; console; //=> bar //Append another config fileconst config = file: 'config1.json' append: key: 'other' file: 'commons.json' ; console; //=> bar
API
- fromEnv
- fromHostname
Please see full documentation
Changelog
You can view the changelog here
License
best-config is open-sourced software licensed under the MIT license