<commit_before># oxr-to-linear-presets

[![Build Status](https://travis-ci.org/javiercejudo/oxr-to-linear-presets.svg)](https://travis-ci.org/javiercejudo/oxr-to-linear-presets)
[![Coverage Status](https://coveralls.io/repos/javiercejudo/oxr-to-linear-presets/badge.svg?branch=master)](https://coveralls.io/r/javiercejudo/oxr-to-linear-presets?branch=master)
[![Code Climate](https://codeclimate.com/github/javiercejudo/oxr-to-linear-presets/badges/gpa.svg)](https://codeclimate.com/github/javiercejudo/oxr-to-linear-presets)

Transform [open exchange rates API response](https://openexchangerates.org/documentation#preview-api-response) to [linear presets](https://github.com/javiercejudo/linear-presets) format.

## Install

    npm i oxr-to-linear-presets

## Usage

See the [tested example](test/example.js) or check the [live Tonic notebook](https://tonicdev.com/javiercejudo/oxr-to-linear-presets/2.0.0).

### Node.js

```js<commit_msg>docs(README): add fixer.io info and example<commit_after># oxr-to-linear-presets

[![Build Status](https://travis-ci.org/javiercejudo/oxr-to-linear-presets.svg)](https://travis-ci.org/javiercejudo/oxr-to-linear-presets)
[![Coverage Status](https://coveralls.io/repos/javiercejudo/oxr-to-linear-presets/badge.svg?branch=master)](https://coveralls.io/r/javiercejudo/oxr-to-linear-presets?branch=master)
[![Code Climate](https://codeclimate.com/github/javiercejudo/oxr-to-linear-presets/badges/gpa.svg)](https://codeclimate.com/github/javiercejudo/oxr-to-linear-presets)

Transform [open exchange rates API response](https://openexchangerates.org/documentation#preview-api-response) to [linear presets](https://github.com/javiercejudo/linear-presets) format.

## Install

    npm i oxr-to-linear-presets

## Usage

See the [tested example](test/example.js) or check the [live Tonic notebook](https://tonicdev.com/javiercejudo/oxr-to-linear-presets/2.0.0).

It also works with [fixer.io](http://fixer.io/) out of the box ([live example](https://tonicdev.com/javiercejudo/currency-linear-presets)).

### Node.js

```js
{'fraction_non_alphanumeric': 0.17469586374695864, 'fraction_numerical': 0.00291970802919708, 'mean_word_length': 5.465408805031447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 19, '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': '3967800', 'n_tokens_mistral': 786, 'n_tokens_neox': 764, 'n_words': 85}