<commit_before># Handwriting.io node.js bindings

## Installation

`npm install handwriting-node`

## Documentation

Documentation will come soon.

## API Overview

Every resource is accessed via your `handwriting` instance:

```js
var handwriting = require('handwriting-node')(' your handwriting.io key ', ' your handwriting.io secret ');
// handwriting.{ RESOURCE_NAME }.{ METHOD_NAME }
```

Every resource method accepts an optional callback as the last argument:

```js
handwriting.handwritings.list()
.then(function(handwritings){
  var thisHandwriting = handwritings[0];
  return handwriting.render.createPdf({
    handwriting_id: thisHandwriting.id,
    text: 'This is a message.\nThis is the next line.'
  });
}).then(function(renderedPdf) {
  renderedPdf; // the pdf object
}).catch(function(err){
  err; // err object with reason and status code
});
```

### Available resources & methods

*Where you see `params` it is a plain JavaScript object, e.g. `{ email: '<EMAIL>' }`*

 * balance
  * [`list()`](https://handwriting.io/docs/getting_started/#handwritings)
  * [`retrieve(params)`](https://handwriting.io/docs/getting_started/#handwritings)
 * render
  * `createPdf(params)`
  * [`createPng(params)`](https://handwriting.io/docs/getting_started/#render-an-image)


## Development

To run the tests you'll need a Handwriting.io *Test* API key (from your [Handwriting.io Dashboard](https://handwriting.io/account)):

```bash<commit_msg>Update documentation links<commit_after># Handwriting.io node.js bindings

## Installation

`npm install handwriting-node`

## Documentation

Documentation will come soon.

## API Overview

Every resource is accessed via your `handwriting` instance:

```js
var handwriting = require('handwriting-node')(' your handwriting.io key ', ' your handwriting.io secret ');
// handwriting.{ RESOURCE_NAME }.{ METHOD_NAME }
```

Every resource method accepts an optional callback as the last argument:

```js
handwriting.handwritings.list()
.then(function(handwritings){
  var thisHandwriting = handwritings[0];
  return handwriting.render.createPdf({
    handwriting_id: thisHandwriting.id,
    text: 'This is a message.\nThis is the next line.'
  });
}).then(function(renderedPdf) {
  renderedPdf; // the pdf object
}).catch(function(err){
  err; // err object with reason and status code
});
```

### Available resources & methods

*Where you see `params` it is a plain JavaScript object, e.g. `{ email: '<EMAIL>' }`*

 * balance
  * [`list()`](https://handwriting.io/docs/#get-handwritings)
  * [`retrieve(params)`](https://handwriting.io/docs/#get-handwritings--id-)
 * render
  * [`createPdf(params)`](https://handwriting.io/docs/#get-render-pdf)
  * [`createPng(params)`](https://handwriting.io/docs/#get-render-png)


## Development

To run the tests you'll need a Handwriting.io *Test* API key (from your [Handwriting.io Dashboard](https://handwriting.io/account)):

```bash
{'fraction_non_alphanumeric': 0.14887063655030802, 'fraction_numerical': 0.0006844626967830253, 'mean_word_length': 4.822709163346613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '35753', 'n_tokens_mistral': 937, 'n_tokens_neox': 884, 'n_words': 239}