<commit_before># graphite-promise

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Actions Status](https://github.com/ashpool/graphite-promise/workflows/nodejs/badge.svg)](https://github.com/ashpool/graphite-promise/actions)


## Status

Experimental/Unstable

## Usage

```js
var graphite = require('graphite-promise'),
client = graphite.createClient(<graphite-url> e.g 'plaintext://127.0.0.1:2003/'
|| {hostedGraphiteKey: 'a key', url: 'graphite url'});
client.write(metric, timestamp)
  .then(function(){})
  .catch(function(reason){})
  .finally(function(){
    client.end();
  });
```

### Example

```js
client.write({ home: { indoor: { temp: 21.2 } } }, 1427727486200);
```

_This project began as a fork of https://github.com/felixge/node-graphite_

[npm-url]: https://npmjs.org/package/graphite-promise
[downloads-image]: http://img.shields.io/npm/dm/graphite-promise.svg
[npm-image]: http://img.shields.io/npm/v/graphite-promise.svg

<commit_msg>actions instead of workflows perhaps<commit_after># graphite-promise

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] 

[![Actions Status](https://github.com/ashpool/graphite-promise/actions/nodejs/badge.svg)](https://github.com/ashpool/graphite-promise/actions)

## Status

Experimental/Unstable

## Usage

```js
var graphite = require('graphite-promise'),
client = graphite.createClient(<graphite-url> e.g 'plaintext://127.0.0.1:2003/'
|| {hostedGraphiteKey: 'a key', url: 'graphite url'});
client.write(metric, timestamp)
  .then(function(){})
  .catch(function(reason){})
  .finally(function(){
    client.end();
  });
```

### Example

```js
client.write({ home: { indoor: { temp: 21.2 } } }, 1427727486200);
```

_This project began as a fork of https://github.com/felixge/node-graphite_

[npm-url]: https://npmjs.org/package/graphite-promise
[downloads-image]: http://img.shields.io/npm/dm/graphite-promise.svg
[npm-image]: http://img.shields.io/npm/v/graphite-promise.svg


{'fraction_non_alphanumeric': 0.203, 'fraction_numerical': 0.026, 'mean_word_length': 5.0636363636363635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3241514', 'n_tokens_mistral': 797, 'n_tokens_neox': 716, 'n_words': 108}