<commit_before>echos [![Build Status](https://secure.travis-ci.org/rcorral/node-echos.png)](http://travis-ci.org/rcorral/node-echos)
=====

Echos is a simple echo server and client. More specifically, echos allows you to setup an echo server that will replay any text sent to it.
Echos also comes with a client that allows you to send an echo request to a server, and it will print it back.

Installation
============
####Local
``` bash
$ npm install echos
```

####Global
``` bash
$ npm install -g echos
```

Usage – Command line
====================

Server
------

    Usage: ./echos server -p,--port <port> -q,--quiet
    Usage: ./echos-server -p,--port <port> -q,--quiet

    Options:
      -p, --port   [default: 1024]
      -q, --quiet  [default: false]

Client
------
    Usage: ./echos client message -p,--port <port> -h,--host <host>
    Usage: ./echos-client message -p,--port <port> -h,--host <host>

    Options:
      -p, --port       [default: 1024]
      -h, --host       [default: "127.0.0.1"]
      -t, --timestamp  [default: false]

Example
-------

Running the server on port ``1337``  
``` bash
$ ./bin/echos server -p 1337
```

Run the client to connect to the server on port ``1337`` and send ``Hello World!``  
``` bash
$ ./bin/echos client Hello World! -p 1337 -t
```

When the server receives an echo request from the client it will log out something like this:  
```
Echo message received:
    Hello World!
    From address: 127.0.0.1
    Time: Sat Jan 04 2014
```

After the client receives the echo response from the server it will log out something like this:  
```
Hello World! time=7ms
```

Usage – As a module
===================<commit_msg>Updated README.<commit_after>echos [![Build Status](https://secure.travis-ci.org/rcorral/node-echos.png)](http://travis-ci.org/rcorral/node-echos)
=====

Echos is a simple echo server and client. More specifically, echos allows you to setup an echo server that will replay any text sent to it.
Echos also comes with a client that allows you to send an echo request to a server, and it will print it back.

Installation
============
####Global
``` bash
$ npm install -g echos
```

####Local
``` bash
$ npm install echos
```

Usage – Command line
====================

Server
------

    Usage: echos server -p,--port <port> -q,--quiet
    Usage: echos-server -p,--port <port> -q,--quiet

    Options:
      -p, --port   [default: 1024]
      -q, --quiet  [default: false]

Client
------
    Usage: echos client message -p,--port <port> -h,--host <host>
    Usage: echos-client message -p,--port <port> -h,--host <host>

    Options:
      -p, --port       [default: 1024]
      -h, --host       [default: "127.0.0.1"]
      -t, --timestamp  [default: false]

Example
-------

Running the server on port ``1337``  
``` bash
$ echos server -p 1337
```

Run the client to connect to the server on port ``1337`` and send ``Hello World!``  
``` bash
$ echos client Hello World! -p 1337 -t
```

When the server receives an echo request from the client it will log out something like this:  
```
Echo message received:
    Hello World!
    From address: 127.0.0.1
    Time: Sat Jan 04 2014
```

After the client receives the echo response from the server it will log out something like this:  
```
Hello World! time=7ms
```

Usage – As a module
===================
{'fraction_non_alphanumeric': 0.17327327327327327, 'fraction_numerical': 0.025825825825825825, 'mean_word_length': 2.8508670520231214, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4896430', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1028, 'n_words': 417}