# ftwgl

> FTW JavaScript Client

Latest version **1.0.19** (published 2025-12-09) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 1.0.19 |
| Published | 2025-12-09 |
| First published | 2023-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 22.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Solitary |
| Maintainers | ftwgl |

## Links

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

## Dependencies (1)

- [json-bigint](https://npm.io/package/json-bigint.md) ^1.0.0

## Recent versions

- 1.0.19 (latest) — 2025-12-09
- 1.0.18 — 2023-12-31
- 1.0.17 — 2023-12-21
- 1.0.16 — 2023-12-20
- 1.0.15 — 2023-12-15
- 1.0.14 — 2023-12-08
- 1.0.13 — 2023-12-08
- 1.0.12 — 2023-12-08
- 1.0.11 — 2023-12-06

## README

# FTWClient Library

## Description
FTWClient is a JavaScript library designed for interacting with the FTW API. It simplifies the process of making API calls and handling responses, providing an easy-to-use interface for developers working with the FTW platform.

## Features
- Simplified API calls to the FTW platform.
- Easy handling of responses.
- Supports various FTW functionalities like creating cups, updating matches, and more.

## Installation
Install FTWClient using npm:

```
npm install ftwclient
```

Or using yarn:

```
yarn add ftwclient
```

## Usage
Here's a quick example to get you started:

```js
const {FTWClient, UserTeamRole, GameType, MatchType} = require('ftwgl');

async function test() {
	let c = new FTWClient(
		"api-key-here",
		"https://dev.ftwgl.net",
		logging=true
	);

	console.log("CTF", GameType.capture_the_flag, UserTeamRole.leader, MatchType.group);

	await c.serverLocations()
}

test().then(() => console.log('Test completed')).catch(error => console.error('Error occurred', error));
```

Replace 'your_api_key' and 'your_api_host' with your actual FTW API key and host.

## License
This project is licensed under the [MIT License](LICENSE).

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