djKianoosh / config-master

A convention for storing and retrieving application config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

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

About

A convention for storing and retrieving application config

License:MIT License


Languages

Language:JavaScript 100.0%