config-master
Load stored configuration data
Last updated 8 years ago by 75lb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install config-master 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.1.0-0                                ...           deep (8 years ago)
  • 3.1.0                                ...           latest (8 years ago)

22 Versions

  • 3.1.0                                ...           8 years ago
  • 3.0.0                                ...           8 years ago
  • 3.0.0-0                                ...           8 years ago
  • 2.1.0-0                                ...           8 years ago
  • 2.0.4                                ...           8 years ago
  • 2.0.3                                ...           8 years ago
  • 2.0.2                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.3                                ...           10 years ago
  • 0.1.2                                ...           10 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
  • 0.0.3                                ...           11 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
  • 0.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 19
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE