Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

config-master

3.1.0 • Public • Published

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

Param Type Description
configName string config name
[options] object options
[options.startFrom] string directory to begin looking for config
[options.filename] string config filename (defaults to .${configName}.json)

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

install

npm i config-master

Downloadsweekly downloads

21,315

version

3.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability