<commit_before>
# Muon Core - NodeJS


NodeJS implementation of Muon





# Examples


open a terminal and run the exmaples service:

```
node examples/muon-dev-tools-server.js

```



now open another terminal window and run a client to test some of the exmaple services:


### echo service

```
node ./examples/dev-tools-echo-client.js
```


### ping service


```
node ./examples/dev-tools-ping-client.js
```



### random number service

```
node ./examples/dev-tools-random-client.js
```


# type id service

```
node ./examples/dev-tools-type-client.js

```




# uuid service
<commit_msg>updated dev tools and readme<commit_after>
# Muon Core - NodeJS


NodeJS implementation of Muon





# Examples


open a terminal and run the exmaples service:

```
node examples/muon-dev-tools-server.js

```



now open another terminal window and run a client to test some of the exmaple services:


### echo service

this exmaple service endpoint echos back it's given payload.

```
node ./examples/dev-tools-echo-client.js
```


### ping service

This example service responds to a payload with contents 'ping' with a 'pong' message.

```
node ./examples/dev-tools-ping-client.js
```



### random number service

Generates a random number between 10000 & 99999.

```
node ./examples/dev-tools-random-client.js
```


### type id service

identifies the javascript type of the payload and responds back.

```
node ./examples/dev-tools-type-client.js

```




### uuid service

Generate a uuid

{'fraction_non_alphanumeric': 0.11938296445338699, 'fraction_numerical': 0.00670690811535882, 'mean_word_length': 3.427299703264095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2788382', 'n_tokens_mistral': 527, 'n_tokens_neox': 452, 'n_words': 157}