Package Exports
- config-master
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 (config-master) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
#config-master Merges together JSON data from the specified files, in the specified order. Designed for app config management.
- ...jsonPath
stringthe paths of JSON files to merge. If the JSON data you want to merge is contained within the JSON file, pass an object specifying thejsonPathandconfigProperty.
Returns: Object - the merged JSON data
####Example
var loadConfig = require("config-master");
var storedConfig = loadConfig(
"~/.global-defaults.json",
"project-specific-defaults.json",
{ jsonPath: "package.json", configProperty: "config" }
);