Socket
Socket
Sign inDemoInstall

config-master

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-master

Merges together config data loaded from external JSON files


Version published
Weekly downloads
111K
decreased by-19.36%
Maintainers
1
Weekly downloads
 
Created
Source

view on npm npm module downloads per month Build Status Dependency Status

#config-master Merges together JSON data from the specified files, in the specified order. Designed for app config management.

  • ...jsonPath string the paths of JSON files to merge. If the JSON data you want to merge is contained within the JSON file, pass an object specifying the jsonPath and configProperty.

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" }
);

FAQs

Package last updated on 13 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc