<commit_before># imp.js

A Javascript wrapper for [Electric Imp](http://electricimp.com)'s Developer Tools API (currently in closed beta).

# Installation

```
npm install imp.js
```

## Instantation

The imp object *must* be instantiated with an apiKey - you can optionally pass an apiBase and apiVersion parameter to overload the defaults.

```javascript
var Imp = require("imp");

var imp = new Imp({
  "apiKey": "<-- YOUR API KEY -->"
});
```

## imp.getDevices(options, callback)

## imp.getDevice(deviceId, callback)

## imp.assignDevice(deviceId, modelId, callback)

## imp.deleteDevice(deviceId, callback)

## imp.getModels(options, callback)

## imp.getModel(modelId, callback)

## imp.createModel(options, callback)

## imp.restartModel(modelId, callback)
<commit_msg>Fixed name of npm package in README<commit_after># imp.js

A Javascript wrapper for [Electric Imp](http://electricimp.com)'s Developer Tools API (currently in closed beta).

# Installation

```
npm install imp-api
```

## Instantation

The imp object *must* be instantiated with an apiKey - you can optionally pass an apiBase and apiVersion parameter to overload the defaults.

```javascript
var Imp = require("imp");

var imp = new Imp({
  "apiKey": "<-- YOUR API KEY -->"
});
```

## imp.getDevices(options, callback)

## imp.getDevice(deviceId, callback)

## imp.assignDevice(deviceId, modelId, callback)

## imp.deleteDevice(deviceId, callback)

## imp.getModels(options, callback)

## imp.getModel(modelId, callback)

## imp.createModel(options, callback)

## imp.restartModel(modelId, callback)

{'fraction_non_alphanumeric': 0.13806206459784673, 'fraction_numerical': 0.0, 'mean_word_length': 5.053639846743295, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '4273193', 'n_tokens_mistral': 513, 'n_tokens_neox': 481, 'n_words': 148}