<commit_before># linear-preset-proxy-factory

[![Build Status](https://travis-ci.org/javiercejudo/linear-preset-proxy-factory.svg)](https://travis-ci.org/javiercejudo/linear-preset-proxy-factory)
[![Code Climate](https://codeclimate.com/github/javiercejudo/linear-preset-proxy-factory/badges/gpa.svg)](https://codeclimate.com/github/javiercejudo/linear-preset-proxy-factory)

Create a proxy for any to any conversions

## Install

    npm i linear-preset-proxy-factory

## Usage

See [CodePen example](http://codepen.io/javiercejudo/pen/dYxdOW?editors=101)
(as of March 2016, the pen works on Chrome, Firefox and Edge).

```js
const Decimal = require('arbitrary-precision')(require('floating-adapter'));
const proxyFactory = require('linear-preset-proxy-factory');

const proxiedConversions = proxyFactory(Decimal, {
    a: [[0, 1], [0, 1]],
    b: [[1, 2], [3, 4]],
    c: [[0, -5], [0, 30]]
});

proxiedConversions.c_b; // => [[0, 30], [2, -3]]
```
<commit_msg>docs: link to CodePen with inlined code<commit_after># linear-preset-proxy-factory

[![Build Status](https://travis-ci.org/javiercejudo/linear-preset-proxy-factory.svg)](https://travis-ci.org/javiercejudo/linear-preset-proxy-factory)
[![Code Climate](https://codeclimate.com/github/javiercejudo/linear-preset-proxy-factory/badges/gpa.svg)](https://codeclimate.com/github/javiercejudo/linear-preset-proxy-factory)

Create a proxy for any to any conversions

## Install

    npm i linear-preset-proxy-factory

## Usage

See [CodePen example](http://codepen.io/javiercejudo/pen/MyJxgm?editors=1010)
(as of March 2016, the pen works on Chrome, Firefox and Edge).

```js
const Decimal = require('arbitrary-precision')(require('floating-adapter'));
const proxyFactory = require('linear-preset-proxy-factory');

const proxiedConversions = proxyFactory(Decimal, {
    a: [[0, 1], [0, 1]],
    b: [[1, 2], [3, 4]],
    c: [[0, -5], [0, 30]]
});

proxiedConversions.c_b; // => [[0, 30], [2, -3]]
```

{'fraction_non_alphanumeric': 0.18381976446492576, 'fraction_numerical': 0.026113671274961597, 'mean_word_length': 4.903323262839879, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '4272542', 'n_tokens_mistral': 759, 'n_tokens_neox': 706, 'n_words': 134}