<commit_before>## Node Js monsterId

NodeJs implementation of [monsterId](http://www.splitbrain.org/projects/monsterid) PHP library.
It depends by node-gd, crypto and srand npm packages.

## Installation

    $ npm install monsterid

## How to use
```js
//Include monsterId and create an http Server.
var monsterId = require('monsterid');
var http = require('http');

http.createServer(function(req, res) {
    // Create your seed. 
    var seed = 'abcdefg';
    
    var avatar = new monsterId(seed);

    // use public method getAvatar to retrieve an image in binary format.
    res.writeHead(200, {'Content-type':'image/png'});
    res.end(avatar.getAvatar(), 'binary');
}).listen('8088');
```
## Credits

Thanks to [<NAME>](http://www.splitbrain.org/personal) for his job on the original library.<commit_msg>Change to README.md<commit_after>## Node Js monsterId

NodeJs implementation of [monsterId](http://www.splitbrain.org/projects/monsterid) PHP library.
Create unique avatar based on a seed.
It depends by node-gd, crypto and srand npm packages.

## Installation

    $ npm install monsterid

## How to use
```js
//Include monsterId and create an http Server.
var monsterId = require('monsterid');
var http = require('http');

http.createServer(function(req, res) {
    // Create your seed. 
    var seed = 'abcdefg';
    
    var avatar = new monsterId(seed);

    // use public method getAvatar to retrieve an image in binary format.
    res.writeHead(200, {'Content-type':'image/png'});
    res.end(avatar.getAvatar(), 'binary');
}).listen('8088');
```
## Credits
Thanks to [<NAME>](http://www.splitbrain.org/personal) for his job on the original library.
{'fraction_non_alphanumeric': 0.1367726454709058, 'fraction_numerical': 0.008398320335932814, 'mean_word_length': 3.97910447761194, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5571938', 'n_tokens_mistral': 538, 'n_tokens_neox': 502, 'n_words': 166}