Socket
Socket
Sign inDemoInstall

config-master

Package Overview
Dependencies
1
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    config-master

Load stored configuration data


Version published
Weekly downloads
127K
increased by8.09%
Maintainers
1
Install size
15.5 kB
Created
Weekly downloads
 

Readme

Source

view on npm npm module downloads Build Status Dependency Status js-standard-style

config-master

A convention for storing and retrieving application config. You supply a string (e.g. 'example-app'), the libary will walk up the directory tree merging config stored for this app. The following locations are searched, with the latter taking precedence:

  • Any package.json, beneath the example-app property.
  • Any .example-app.json files (or a custom filename you specify).

loadConfig(configName, [options]) ⇒ Object

Kind: Exported function

ParamTypeDescription
configNamestringconfig name
[options]objectoptions
[options.startFrom]stringdirectory to begin looking for config
[options.filename]stringconfig filename (defaults to .${configName}.json)

© 2014-17 Lloyd Brookes 75pound@gmail.com. Documented by jsdoc-to-markdown.

Keywords

FAQs

Last updated on 17 Mar 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc