<commit_before># statful-client-javascript
Statful client for Javascript applications.

[![Build Status](https://travis-ci.org/statful/statful-client-javascript.svg)](https://travis-ci.org/statful/statful-client-javascript)
[![npm version](https://badge.fury.io/js/statful-client-javascript.svg)](https://badge.fury.io/js/statful-client-javascript)
[![Dependency Status](https://david-dm.org/statful/statful-client-javascript.svg)](https://david-dm.org/statful/verifjs)
[![devDependency Status](https://david-dm.org/mindera/statful-client-javascript/dev-status.svg)](https://david-dm.org/statful/statful-client-javascript#info=devDependencies)


## How do I get set up?

```
#!html
<script type="text/javascript" src="js/statful.min.js"></script>
```

## Timings

All methods that provider timing mechanism are based in the [user-timing](http://www.w3.org/TR/user-timing/) specification.

### Configuration parameters


- dryrun: enable dryrun mode - ie. do not actually flush metrics out
- environment: environment to be used as tag - ie. development, production, etc.
- namespace: namespace to be used as metrics prefix - ie web, application, mobile, etc.
- tags: global tags
- aggregations: global aggregations
- aggregationFrequency: aggregation frequency
- timer, counter, gauge, other: metric type defaults
- registerResourceErrors: enable resource error tracking<commit_msg>fix: update README<commit_after># statful-client-javascript
Statful client for Javascript applications.

[![NPM version][npm-image]][npm-url] [![Build Status](https://travis-ci.org/statful/statful-client-javascript.svg?branch=master)](https://https://travis-ci.org/statful/statful-client-javascript)
[![devDependency Status](https://david-dm.org/mindera/statful-client-javascript/dev-status.svg)](https://david-dm.org/statful/statful-client-javascript#info=devDependencies)


## How do I get set up?

```
#!html
<script type="text/javascript" src="js/statful.min.js"></script>
```

## Timings

All methods that provider timing mechanism are based in the [user-timing](http://www.w3.org/TR/user-timing/) specification.

### Configuration parameters


- dryrun: enable dryrun mode - ie. do not actually flush metrics out
- environment: environment to be used as tag - ie. development, production, etc.
- namespace: namespace to be used as metrics prefix - ie web, application, mobile, etc.
- tags: global tags
- aggregations: global aggregations
- aggregationFrequency: aggregation frequency
- timer, counter, gauge, other: metric type defaults
- registerResourceErrors: enable resource error tracking
{'fraction_non_alphanumeric': 0.13914728682170543, 'fraction_numerical': 0.0007751937984496124, 'mean_word_length': 5.219277108433735, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 13, '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': '6450491', 'n_tokens_mistral': 778, 'n_tokens_neox': 752, 'n_words': 191}