# haxball-room

> Haxball Room is a way to facilitate the functions proposed by the Haxball API.

Latest version **1.0.1** (published 2020-08-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install haxball-room
pnpm add haxball-room
yarn add haxball-room
bun add haxball-room
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-08-26 |
| First published | 2020-08-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tyde |
| Maintainers | tyde81 |
| Keywords | Haxball |

## Links

- npm: https://www.npmjs.com/package/haxball-room
- Repository: https://github.com/tyde81/haxball-room
- Homepage: https://github.com/tyde81/haxball-room#readme
- Issues: https://github.com/tyde81/haxball-room/issues
- npm.io page: https://npm.io/package/haxball-room

## Dependencies (1)

- [haxball-types](https://npm.io/package/haxball-types.md) ^1.0.2

## Recent versions

- 1.0.1 (latest) — 2020-08-26
- 1.0.0 — 2020-08-11

## README

# Haxball Room

Haxball Room is a way to facilitate the functions proposed by the Haxball API.

---

## Install

### NPM
`npm install haxball-room --save`

### Yarn
`yarn add haxball-room`

---

## Example

```ts
import { Room } from "haxball-room";

let room = new Room().createRoom({
  roomName: "q",
  noPlayer: true,
});

room.onPlayerJoin = (player) => {
  new Room(room).updateAdmins();
};

room.onPlayerLeave = (player) => {
  new Room(room).updateAdmins();
};
```

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