<commit_before># azure-config-util

***NOW SHOWING VERSION 2.x DOCUMENTATION - UNDER DEVELOPMENT - NOT IN NPM***

This module serves two purposes:

1. Make it easy to use an Azure Storage Table for shard configuration values, with a caching client.
2. Make it easy to use the shared configuration in order to utilize related services.

This library will use an Azure Table in order to generate/cache/refresh configuration objects.  This library does *NOT* encrypt line item configuration records.  Version 3 will add encrypted values, as well as command-line utilities for backing up and restoring config table values.


## Installation

```
npm install --save azure-config-util
```

## Usage

Configuration values will be determined and deconstructed from a [configured table](https://github.com/tracker1/azure-config-util/wiki/ConfigurationTable), using [specified configuration options and/or environment variables](https://github.com/tracker1/azure-config-util/wiki/ConfigurationOptions).

The behavior changes from 0.x-1.x in that it will now return a wrapper, and not a resolver/promise method for configuration.

```js
// You need to run the method the module returns to create a configuration fetcher
var azureUtil = require('azure-config-util')(configOptions);<commit_msg>save work in progress, update v2 readme<commit_after># azure-config-util

***NOW SHOWING VERSION 2.x DOCUMENTATION - UNDER DEVELOPMENT - NOT IN NPM***

This module serves two purposes:

1. Make it easy to use an Azure Storage Table for shared configuration values, with a caching client.
2. Make it easy to use the shared configuration in order to utilize related services.

This library will use an Azure Table in order to generate/cache/refresh configuration objects.  This library does *NOT* encrypt line item configuration records.  Version 3 will add encrypted values, as well as command-line utilities for backing up and restoring config table values.


## Installation

```
npm install --save azure-config-util
```

## Usage

Configuration values will be determined and deconstructed from a [configured table](https://github.com/tracker1/azure-config-util/wiki/ConfigurationTable), using [specified configuration options and/or environment variables](https://github.com/tracker1/azure-config-util/wiki/ConfigurationOptions).

The behavior changes from 0.x-1.x in that it will now return a wrapper, and not a resolver/promise method for configuration.

```js
// You need to run the method the module returns to create a configuration fetcher
var azureUtil = require('azure-config-util')(configOptions);
{'fraction_non_alphanumeric': 0.07454615681730398, 'fraction_numerical': 0.00656624179219776, 'mean_word_length': 4.76837416481069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '1606052', 'n_tokens_mistral': 685, 'n_tokens_neox': 648, 'n_words': 311}