<commit_before># fluctor
Flux-like + Actor Model

[![Build Status](https://travis-ci.org/DmitryDodzin/fluctor.svg?branch=master)](https://travis-ci.org/DmitryDodzin/fluctor) [![Dependencies](http://david-dm.org/DmitryDodzin/fluctor.svg)](http://david-dm.org/DmitryDodzin/fluctor) [![Coverage Status](https://coveralls.io/repos/github/DmitryDodzin/fluctor/badge.svg?branch=master)](https://coveralls.io/github/DmitryDodzin/fluctor?branch=master)

Well, this is a library for making shared state across machines.

## Installation

[npm][]:

```bash
npm install fluctor
```


## What is it?

Well once you create an ```fluctor``` object you have a state and you can change it with transactions

```javascript

const Fluctor = require('fluctor').Fluctor;


var fluctor = new Fluctor({
  initial: {}, // initial state
  connection: {} // connection settings
});

fluctor.state // => the state

fluctor
  .tran // can be acessed as fluctor.transactions too
  .begin() // begin the transactions
  .set('foo', 'bar') // Do the change
  .commit(); // commit the changes (you can rollback too)

fluctor.state // => { "foo": "bar" } is the value here and every other server

```


## License

[MIT][license] © [<NAME>][author]



[npm]: https://docs.npmjs.com/cli/install

[license]: LICENSE

[author]: https://github.com/DmitryDodzin<commit_msg>Adding NPM banner<commit_after># fluctor
Flux-like + Actor Model

[![Npm Package](https://nodei.co/npm/fluctor.png?downloads=true&stars=true)](https://www.npmjs.com/package/fluctor)

[![Build Status](https://travis-ci.org/DmitryDodzin/fluctor.svg?branch=master)](https://travis-ci.org/DmitryDodzin/fluctor) [![Dependencies](http://david-dm.org/DmitryDodzin/fluctor.svg)](http://david-dm.org/DmitryDodzin/fluctor) [![Coverage Status](https://coveralls.io/repos/github/DmitryDodzin/fluctor/badge.svg?branch=master)](https://coveralls.io/github/DmitryDodzin/fluctor?branch=master)

Well, this is a library for making shared state across machines.

## Installation

npm:


```bash
npm install fluctor
```


## What is it?

Well once you create an ```fluctor``` object you have a state and you can change it with transactions

```javascript

const Fluctor = require('fluctor').Fluctor;


var fluctor = new Fluctor({
  initial: {}, // initial state
  connection: {} // connection settings
});

fluctor.state // => the state

fluctor
  .tran // can be acessed as fluctor.transactions too
  .begin() // begin the transactions
  .set('foo', 'bar') // Do the change
  .commit(); // commit the changes (you can rollback too)

fluctor.state // => { "foo": "bar" } is the value here and every other server

```


## License

[MIT][license] © [<NAME>][author]


[license]: LICENSE

[author]: https://github.com/DmitryDodzin
{'fraction_non_alphanumeric': 0.16362973760932945, 'fraction_numerical': 0.0, 'mean_word_length': 4.479041916167665, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 13, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1286235', 'n_tokens_mistral': 971, 'n_tokens_neox': 917, 'n_words': 223}