# wrunity

> Connection manager for Webroot's Unity API

Latest version **1.0.0** (published 2019-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install wrunity
pnpm add wrunity
yarn add wrunity
bun add wrunity
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-07-15 |
| First published | 2018-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | petereitz |
| Maintainers | petereitz |
| Keywords | webroot, unity, api, connection |

## Links

- npm: https://www.npmjs.com/package/wrunity
- Repository: https://github.com/petereitz/wrunity
- Homepage: https://github.com/petereitz/wrunity#readme
- Issues: https://github.com/petereitz/wrunity/issues
- npm.io page: https://npm.io/package/wrunity

## Dependencies (2)

- [qs](https://npm.io/package/qs.md) ^6.7.0
- [axios](https://npm.io/package/axios.md) ^0.19.0

## Recent versions

- 1.0.0 (latest) — 2019-07-15
- 0.0.5 — 2018-05-26
- 0.0.4 — 2018-05-25
- 0.0.3 — 2018-05-25
- 0.0.2 — 2018-05-25
- 0.0.1 — 2018-05-25

## README

## Overview

Manage authentication tokens for Webroot's Unity API.


### Install

```
    npm -i wrunity
```

### Use
Call a new `wrunity` object with your api and console keys:

```javascript

const Unity = require('wrunity');
const unity = new Unity(<apiKey>, <apiSecret>, <consoleUsername>, <consolePassword>);

// grab a current auth token
unity.getToken()
  .then(result => console.log(result))
  .catch(err => console.log(err))

// come back any time
setInterval(function(){}
  unity.getToken()
    .then(result => console.log(result))
    .catch(err => console.log(err))
}, 150000)

```

### Changelog
- **1.0.0**
  - [axios](https://github.com/axios/axios) based rewrite
  - Shift focus to managing authentication token.

---
_Source: https://npm.io/package/wrunity · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
