<commit_before># incr-object

A standalone incrementing object. Good for quick statistics scripts
and so on. Kind of like a set, except geared towards binning. Basically
just abstracts away the annoyingness of `undefined++`.<commit_msg>Improve readme<commit_after># incr-object

A standalone incrementing object. Good for quick statistics scripts
and so on. Kind of like a set, except geared towards binning. Basically
just abstracts away the annoyingness of `undefined++`.

```js
var incr = require('incr-object');

var obj = new incr();

// increment the bucket for foo. it's now 1
obj.incr('foo');

// bring it back down to zero
obj.decr('foo');

// get the value for foo
obj.value('foo');

// get the value for bar. since it's undefined, returns 0
obj.value('bar');

// get all combos as { key: 'foo', value: 0 } objects
obj.entries();
```
{'fraction_non_alphanumeric': 0.11269276393831554, 'fraction_numerical': 0.0035587188612099642, 'mean_word_length': 4.275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7332822', 'n_tokens_mistral': 259, 'n_tokens_neox': 244, 'n_words': 113}