<commit_before># diffsync


## Installation

TODO


## Usage

TODO


## API


### client(socket)

##### Params:

* **Socket.io** *socket* Websocket using Socket.io

```javascript
let { client } = require('diffsync');
let diffsync = client(socket);
```

#### update(json)

Update the whole document

##### Params:

* **Object** *json* Information about and instructions for the document

#### merge(json)

Merge instructions

##### Params:

* **Object** *json* Instructions for the document


### server(socket)

##### Params:

* **Socket.io** *socket* Websocket using Socket.io

```javascript
let { server } = require('diffsync');
let diffsync = server(socket);
```

#### on(event, listener)

Listen for events

##### Events:

* diff
* patch

##### Params:

* **String** *event*
* **Function** *listener*


## License

MIT<commit_msg>Add David DM to README<commit_after># diffsync [![Dependencies badge][david-image]][david-url] [![DevDependencies badge][david-dev-image]][david-dev-url]


## Installation

TODO


## Usage

TODO


## API


### client(socket)

##### Params:

* **Socket.io** *socket* Websocket using Socket.io

```javascript
let { client } = require('diffsync');
let diffsync = client(socket);
```

#### update(json)

Update the whole document

##### Params:

* **Object** *json* Information about and instructions for the document

#### merge(json)

Merge instructions

##### Params:

* **Object** *json* Instructions for the document


### server(socket)

##### Params:

* **Socket.io** *socket* Websocket using Socket.io

```javascript
let { server } = require('diffsync');
let diffsync = server(socket);
```

#### on(event, listener)

Listen for events

##### Events:

* diff
* patch

##### Params:

* **String** *event*
* **Function** *listener*


## License

MIT


[david-url]: https://david-dm.org/klambycom/podcat#info=dependencies&view=table
[david-image]: https://david-dm.org/klambycom/Podcat.svg?style=flat-square

[david-dev-url]: https://david-dm.org/klambycom/podcat#info=devDependencies&view=table
[david-dev-image]: https://david-dm.org/klambycom/Podcat/dev-status.svg?style=flat-square

{'fraction_non_alphanumeric': 0.19339622641509435, 'fraction_numerical': 0.0, 'mean_word_length': 4.974647887323943, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2576154', 'n_tokens_mistral': 770, 'n_tokens_neox': 718, 'n_words': 165}