# tabapi-client

> TABControl API Client

Latest version **1.5.4** (published 2021-11-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install tabapi-client
pnpm add tabapi-client
yarn add tabapi-client
bun add tabapi-client
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.4 |
| Published | 2021-11-29 |
| First published | 2021-11-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 21.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TABControl Tecnologia. |
| Maintainers | tabcontrol-ci |
| Keywords | tabcontrol, wamp, tabapi |

## Links

- npm: https://www.npmjs.com/package/tabapi-client
- npm.io page: https://npm.io/package/tabapi-client

## Dependencies (1)

- [autobahn](https://npm.io/package/autobahn.md) 18.3.2

## Recent versions

- 1.5.4 (latest) — 2021-11-29
- 1.5.3 — 2021-11-29
- 1.5.2 — 2021-11-24
- 1.5.1 — 2021-11-24

## README

# TABControl API Client

To use tabapi client in a Node.js project:

`npm install tabapi-client --save`

tabapi-client also comes with TypeScript definitions.

## Example

This example is a Node.js TypeScript example using ES2015 js target.

```
import * as tabapi from 'tabapi-client';

async function main() {
    try {
        var session = await tabapi.connect('ws://localhost:8080/ws');

        var login = await session.call("com.tabcontrol.api.chat.login", {});
    }
    catch(e){
        console.log(`exception: ${JSON.stringify(e,null,4)}`);
    }
}

main();
```

Refer to [hello-tabapi on GitHub](https://github.com/tabcontrol/tabapi-hello-async/blob/master/index.ts) for a more complete example.

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