<commit_before>[![npm](https://img.shields.io/npm/v/expression-expander.svg)](https://www.npmjs.com/package/expression-expander)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![minified size](https://badgen.net/bundlephobia/min/expression-expander)](https://bundlephobia.com/result?p=expression-expander)
[![downloads](http://img.shields.io/npm/dm/expression-expander.svg?style=flat-square)](https://npmjs.org/package/expression-expander)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/arlac77/expression-expander.git)
[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

## Expression Expander

Expands _\\${to be evaluated}_ expressions in object graphs. The actual expression syntax inside of the _\\${evaluated}_ is not defined within this module (only simple key lookup)

# example

## file.js

<!-- skip-example -->

```js
import { createContext } from "expression-expander";<commit_msg>docs(README): update from template<commit_after>[![npm](https://img.shields.io/npm/v/expression-expander.svg)](https://www.npmjs.com/package/expression-expander)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![minified size](https://badgen.net/bundlephobia/min/expression-expander)](https://bundlephobia.com/result?p=expression-expander)
[![downloads](http://img.shields.io/npm/dm/expression-expander.svg?style=flat-square)](https://npmjs.org/package/expression-expander)
[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

## Expression Expander

Expands _\\${to be evaluated}_ expressions in object graphs. The actual expression syntax inside of the _\\${evaluated}_ is not defined within this module (only simple key lookup)

# example

## file.js

<!-- skip-example -->

```js
import { createContext } from "expression-expander";
{'fraction_non_alphanumeric': 0.18868720979316167, 'fraction_numerical': 0.014774166314900802, 'mean_word_length': 5.810344827586207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 22, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '158039', 'n_tokens_mistral': 854, 'n_tokens_neox': 785, 'n_words': 95}