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);
npm i foxhole-client
# or
yarn add foxhole-client
# or
pnpm i foxhole-client
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.
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 = /* ... */;