<commit_before># [ Crusader Kings 2 Savegame Parser ](https://github.com/chriskjaer/ck2parser)
> A CK2 Savegame to JSON parser for the Paradox Game: [Crusader Kings 2](http://www.crusaderkings.com/).


## Features
Takes the path to an uncompressed savegame and returns a promise which resolves
to a json object.


## Usage
Install package with npm. `npm install ck2parser --save`

```
var parse = require('ck2parser');
var SAVEGAME = '../path/to/you/savefile.ck2';

parse(SAVEGAME)
  .then(console.log)
  .catch(console.error)
```


## Author

**<NAME>**

+ [http://twitter.com/ckjaer](http://twitter.com/ckjaer)
+ [http://github.com/chriskjaer](http://github.com/chriskjaer)


## Copyright and license
Copyright <NAME>

[LICENSE MIT](LICENSE.md)<commit_msg>fixed types<commit_after># [ Crusader Kings 2 Savegame Parser ](https://github.com/chriskjaer/ck2parser)
> A CK2 Savegame to JSON parser for the Paradox Game: [Crusader Kings 2](http://www.crusaderkings.com/).


## Features
Takes the path to an uncompressed savegame and returns a promise which resolves
to a json object.


## Usage
Install package with npm. `npm install ck2parser --save`

```
var parse = require('ck2parser');
var SAVEGAME = '../path/to/your/savefile.ck2';

parse(SAVEGAME)
  .then(console.log)
  .catch(console.error)
```


## Author

**<NAME>**

+ [http://twitter.com/ckjaer](http://twitter.com/ckjaer)
+ [http://github.com/chriskjaer](http://github.com/chriskjaer)


## Copyright and license
Copyright <NAME>

[LICENSE MIT](LICENSE.md)
{'fraction_non_alphanumeric': 0.15445544554455445, 'fraction_numerical': 0.009240924092409241, 'mean_word_length': 4.453237410071942, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1285010', 'n_tokens_mistral': 554, 'n_tokens_neox': 522, 'n_words': 134}