2.0.0 • Published 2 years ago

foxhole-client v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

foxhole-client.js

npm Build Status codecov XO code style

A Foxhole War API client for the web and Node.js.

It also includes complete typings for the API (see below for more info).

import Foxhole from 'foxhole-client';

const foxhole = new Foxhole();

const warState = await foxhole.war.fetchState();

console.log(warState);

Installation

npm i foxhole-client
# or
yarn add foxhole-client
# or
pnpm i foxhole-client

Usage

import Foxhole from 'foxhole-client';

const foxhole = new Foxhole();

Please refer to the generated documentation for more detailed info.

You may also want to view the API report.

API Types

If you're using TypeScript and are just interested in the API types you can access them like so:

import type { Api } from 'foxhole-client';

const warState: Api.War.State = /* ... */;
2.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago