# config-master

> Load stored configuration data

Latest version **3.1.0** (published 2017-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install config-master
pnpm add config-master
yarn add config-master
bun add config-master
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2017-03-17 |
| First published | 2014-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lloyd Brookes |
| Maintainers | 75lb |
| Keywords | configuration, manage, management, config, load, options, app |

## Links

- npm: https://www.npmjs.com/package/config-master
- Repository: https://github.com/75lb/config-master
- Homepage: https://github.com/75lb/config-master#readme
- Issues: https://github.com/75lb/config-master/issues
- npm.io page: https://npm.io/package/config-master

## Dependencies (1)

- [walk-back](https://npm.io/package/walk-back.md) ^2.0.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 3.1.0 (latest) — 2017-03-17
- 2.1.0-0 (deep) — 2016-10-18
- 3.0.0 — 2017-02-09
- 3.0.0-0 — 2017-02-08
- 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
- … 7 more at https://npm.io/package/config-master/versions

## README

[![view on npm](http://img.shields.io/npm/v/config-master.svg)](https://www.npmjs.org/package/config-master)
[![npm module downloads](http://img.shields.io/npm/dt/config-master.svg)](https://www.npmjs.org/package/config-master)
[![Build Status](https://travis-ci.org/75lb/config-master.svg?branch=master)](https://travis-ci.org/75lb/config-master)
[![Dependency Status](https://david-dm.org/75lb/config-master.svg)](https://david-dm.org/75lb/config-master)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

<a name="module_config-master"></a>

## 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).

<a name="exp_module_config-master--loadConfig"></a>

### loadConfig(configName, [options]) ⇒ <code>Object</code> ⏏
**Kind**: Exported function  

| Param | Type | Description |
| --- | --- | --- |
| configName | <code>string</code> | config name |
| [options] | <code>object</code> | options |
| [options.startFrom] | <code>string</code> | directory to begin looking for config |
| [options.filename] | <code>string</code> | config filename (defaults to `.${configName}.json`) |


* * *

&copy; 2014-17 Lloyd Brookes <75pound@gmail.com>. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).

---
_Source: https://npm.io/package/config-master · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
