<commit_before>[![Version](https://img.shields.io/npm/v/redux-caller.svg)](https://www.npmjs.com/package/redux-caller)
[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/djoeman84/redux-caller/blob/master/LICENSE)
[![dependencies](https://david-dm.org/djoeman84/redux-caller.svg)](https://david-dm.org/djoeman84/redux-caller)
[![devDependency Status](https://david-dm.org/djoeman84/redux-caller/dev-status.svg)](https://david-dm.org/djoeman84/redux-caller#info=devDependencies)
[![airbnb code style](https://img.shields.io/badge/code%20style-airbnb-fd5c63.svg)](https://github.com/airbnb/javascript)

---

This enables you to write ES2015 code but before the package is published on NPM, it gets converted to ES5 code so anyone can use it in their projects.

## Peer Dependencies
- [Redux](https://github.com/reactjs/redux)


## Getting Started
```shell
npm install redux-caller --save
```

## Usage
```javascript
import { Record } from 'immutable';
import { createStore } from 'redux'
import { createReducer } from 'redux-caller';

const ACTIONS = {
  SET_COUNT: 'COUNTER_STORE__SET_COUNT'
};

class CounterStore extends Record({count: 1}) {
  handleAction({type, payload}) {
    switch (type) {
      case ACTIONS.SET_COUNT:
        return this.setState(payload);
      default:
        return this;
    }
  }
}

let store = createStore(new CounterStore());

store.dispatch({ type: ACTIONS.SET_COUT, payload: 2 }) // => CounterStore { count = 2 }

store.dispatch({ type: ACTIONS.SET_COUT, payload: 20 }) // => CounterStore { count = 20 }

store.dispatch({ type: ACTIONS.SET_COUT, payload: 1 }) // => CounterStore { count = 1 }

```

## Credits

- [Hexbridge](http://hexbridge.com)<commit_msg>Fix typo in README<commit_after>[![Version](https://img.shields.io/npm/v/redux-caller.svg)](https://www.npmjs.com/package/redux-caller)
[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/djoeman84/redux-caller/blob/master/LICENSE)
[![dependencies](https://david-dm.org/djoeman84/redux-caller.svg)](https://david-dm.org/djoeman84/redux-caller)
[![devDependency Status](https://david-dm.org/djoeman84/redux-caller/dev-status.svg)](https://david-dm.org/djoeman84/redux-caller#info=devDependencies)
[![airbnb code style](https://img.shields.io/badge/code%20style-airbnb-fd5c63.svg)](https://github.com/airbnb/javascript)

---

This enables you to write ES2015 code but before the package is published on NPM, it gets converted to ES5 code so anyone can use it in their projects.

## Peer Dependencies
- [Redux](https://github.com/reactjs/redux)


## Getting Started
```shell
npm install redux-caller --save
```

## Usage
```javascript
import { Record } from 'immutable';
import { createStore } from 'redux'
import { createReducer } from 'redux-caller';

const ACTIONS = {
  SET_COUNT: 'COUNTER_STORE__SET_COUNT'
};

class CounterStore extends Record({count: 1}) {
  handleAction({type, payload}) {
    switch (type) {
      case ACTIONS.SET_COUNT:
        return this.setState(payload);
      default:
        return this;
    }
  }
}

let store = createStore(createReducer(new CounterStore()));

store.dispatch({ type: ACTIONS.SET_COUT, payload: 2 }) // => CounterStore { count = 2 }

store.dispatch({ type: ACTIONS.SET_COUT, payload: 20 }) // => CounterStore { count = 20 }

store.dispatch({ type: ACTIONS.SET_COUT, payload: 1 }) // => CounterStore { count = 1 }

```

## Credits

- [Hexbridge](http://hexbridge.com)
{'fraction_non_alphanumeric': 0.1671436748712078, 'fraction_numerical': 0.01659988551803091, 'mean_word_length': 4.376923076923077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 22, 'lorem ipsum': 0, 'www.': 2, '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': '1102110', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1198, 'n_words': 226}