<commit_before>Node.js EDBO library
=================

###Overview
**_Early Alpha_** unofficial [EDBO](http://edbo.gov.ua/) middleware library for easy creation of EDBO clients.

##Usage
Firstly, you need yo create *config file* in JSON format which contains *security credentials* and *connection details* of EDBO services

**config.json**
```json
{
  "Host": "EDBO_HOST",
  "Port": EDBO_PORT,

  "User":           "YOUR_LOGIN",
  "Password":       "<PASSWORD>",
  "ApplicationKey": "YOUR_APP_KEY"
}
```

in case of *test* EDBO services:
```
EDBO_HOST = "test.edbo.gov.ua"
EDBO_PORT = 8080
YOUR_APP_KEY = ""
```

Then you could use the library itself

**edbo-client-example.js**
```javascript
edbo.createSession({ config: "config.json" }, function(session) {
  session.request("guides", "EducationTypesGet", function(err, result) {
    if(err) throw err;
    console.log(result.dEducationTypes);
  })
})
```

##Dependencies
* [**node-soap**](https://github.com/milewise/node-soap)<commit_msg>Readme bump<commit_after>Node.js EDBO library
=================

###Overview
**_Early Alpha_** unofficial [EDBO](http://edbo.gov.ua/) library.

##Usage
Firstly, you need yo create *config file* in JSON format which contains *security credentials* and *connection details* of EDBO services

**config.json**
```json
{
  "edbo": {
    "host": "test.edbo.gov.ua",
    "port": 8080,

    "user": "...",
    "password": "..."
  }
}
```

Then you could use the library itself

**edbo-client-example.js**
```javascript
var EDBO = require('../');

EDBO.setGlobalConfig('config.json');

EDBO
  .session()
  .then(function(session) {
    return session.Guides.BenefitsGet();
  })
  .then(function(data) {
    console.log(data.dBenefits);
  })
  .catch(function(err) {
    console.log(err);
  })
```
{'fraction_non_alphanumeric': 0.19101123595505617, 'fraction_numerical': 0.0044943820224719105, 'mean_word_length': 4.28486646884273, 'pattern_counts': {'":': 10, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '3329469', 'n_tokens_mistral': 644, 'n_tokens_neox': 596, 'n_words': 144}