<commit_before># node-abstractsocket

Because I like my sockets like my Picasso paintings: abstract.


## Abstract what?

Go read this: http://man7.org/linux/man-pages/man7/unix.7.html, I'll wait.


## Examples

Server:

```js
// abstract echo server
var abs = require('./lib/abstract_socket');

var server = abs.createServer(function(c) { //'connection' listener
  console.log('client connected');
  c.on('end', function() {
    console.log('client disconnected');
  });
  c.write('hello\r\n');
  c.pipe(c);
});
server.listen('\0foo');

```

Client:

```js
var abs = require('./lib/abstract_socket');<commit_msg>Add npm badge to README<commit_after># node-abstractsocket

Because I like my sockets like my Picasso paintings: abstract.

[![NPM](https://nodei.co/npm/abstract-socket.png)](https://nodei.co/npm/abstract-socket/)


## Abstract what?

Go read this: http://man7.org/linux/man-pages/man7/unix.7.html, I'll wait.


## Examples

Server:

```js
// abstract echo server
var abs = require('./lib/abstract_socket');

var server = abs.createServer(function(c) { //'connection' listener
  console.log('client connected');
  c.on('end', function() {
    console.log('client disconnected');
  });
  c.write('hello\r\n');
  c.pipe(c);
});
server.listen('\0foo');

```

Client:

```js
var abs = require('./lib/abstract_socket');
{'fraction_non_alphanumeric': 0.18914845516201959, 'fraction_numerical': 0.006028636021100226, 'mean_word_length': 4.207843137254902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1103130', 'n_tokens_mistral': 464, 'n_tokens_neox': 444, 'n_words': 100}