config-master

Load stored configuration data

MIT 22 个版本
安装
npm install config-master
yarn add config-master
pnpm add config-master
bun add config-master
README

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.

版本列表
3.1.0 2017-03-17
3.0.0-0 2017-02-08
3.0.0 2017-02-09
2.1.0-0 2016-10-18
2.0.4 2016-08-20
2.0.3 2016-05-30
2.0.2 2016-02-26
2.0.1 2016-01-02
2.0.0 2015-11-13
1.0.2 2015-10-13
1.0.1 2015-05-09
1.0.0 2015-03-09
0.2.1 2014-06-13
0.2.0 2014-06-13
0.1.3 2014-06-09
0.1.2 2014-06-08
0.1.1 2014-05-09
0.1.0 2014-05-06
0.0.3 2014-05-01
0.0.2 2014-05-01
0.0.1 2014-05-01
0.0.0 2014-04-30