<commit_before>node-etcd-config
================

Returns a configuration object from etcd

## Usage

```
// initiate EtcdConfig
var appConfig = new EtcdConfig({connectionString: 'http://127.0.0.1:4001/', jsonKeys: true });
appConfig.identify('my-app');
appConfig.load(function _loadPluginConfig (err, config) {
    console.log('config loaded: %j', config);
});
```

## Options
passed as an object to constructor
* connectionString: url of etcd http api (required)
* jsonKeys: set to `true` if configuration values saved as JSON in etcd. Defaults to false (optional)

## Methods
* identify(applicatioName): identifies where to find the etcd keys for config using tree pattern /applications/{applicationName}
* load(callback): callback called when config parsed from etcd. callback signature is `function(err, config)`

## Events
* 'changed': fired on changes to etcd keys, returning a `changed` object
<commit_msg>easier to read<commit_after>node-etcd-config
================

Returns a configuration object from etcd

## Usage

```
// initiate EtcdConfig
var appConfig = new EtcdConfig({connectionString: 'http://127.0.0.1:4001/', jsonKeys: true });

// identify application
appConfig.identify('my-app');

// load the configuration
appConfig.load(function _loadPluginConfig (err, config) {
    console.log('config loaded: %j', config);
});
```

## Options
passed as an object to constructor
* connectionString: url of etcd http api (required)
* jsonKeys: set to `true` if configuration values saved as JSON in etcd. Defaults to false (optional)

## Methods
* identify(applicatioName): identifies where to find the etcd keys for config using tree pattern /applications/{applicationName}
* load(callback): callback called when config parsed from etcd. callback signature is `function(err, config)`

## Events
* 'changed': fired on changes to etcd keys, returning a `changed` object

{'fraction_non_alphanumeric': 0.126528442317916, 'fraction_numerical': 0.01063264221158958, 'mean_word_length': 5.315436241610739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2026160', 'n_tokens_mistral': 542, 'n_tokens_neox': 516, 'n_words': 199}