Skip to content

Commit

Permalink
a reasonable readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedp committed Nov 20, 2019
1 parent ca2589b commit a6c8854
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,63 @@
# tablo-api-js
**tablo-api-js** provides a simple API module to interact with Tablo DVRs.
It was developed to be used with Node.js/electron - it may work in the browser,
though ymmv.

## Installation
Install with npm
```bash
npm install tablo-api
```
or with yarn
```bash
yarn add tablo-api
```

## Usage
In Node:

```js
const Tablo = require('tablo-api');

const Api = new Tablo();

const devices = Api.discover();

Api.device = { ip: "192.168.1.100" }

const serverInfo = Api.getServerInfo();

```

## Development
After you've cloned this repo, there are some built-in commands to aid in development:

**Build the package** - outputs built files to `./dist/`. These are the ones that will ultimately end up in the pacakage.
```bash
npm run-script build
```
or
```bash
yarn build
```
**Linter** - runs standard lint checks to keep code clean.
```bash
npm run-script lint
```
or
```bash
yarn lint
```
**Formatter** - formats the code **in place** for consistency.
```bash
npm run-script format
```
or
```bash
yarn format
```

## Licence

MIT

0 comments on commit a6c8854

Please sign in to comment.