Package Exports
- merge-settings
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (merge-settings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
common-config

Manage and merge configuration settings from multiple sources.
(TOC generated by verb using markdown-toc)
Install
Install with npm:
$ npm i common-config --saveUsage
var commonConfig = require('common-config');API
CommonConfig
Create an instance of CommonConfig.
.addConfig
Add a config object to be merged.
Params
object{Object}: The object to merge into the config.
Example
config
.addConfig({a: 'b', c: 'd'})
.addConfig({a: 'z'})
.merge();
//=> {a: 'z', c: 'd'}.addConfigs
Add an array or list of config objects to be merged.
Params
object{Object}: The object to merge into the config.
Example
config
.addConfigs({a: 'b'}, {c: 'd'})
.addConfigs([{a: 'b'}, {c: 'd'}]).merge
Merge normalized config objects.
Params
config{Object}
Example
var config = {};
configs.merge(config);Related projects
Running tests
Install dev dependencies:
$ npm i -d && npm testContributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb on January 30, 2016.