1.2.2 • Published 3 months ago

@brawltracker/brawl-api v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Simple API wrapper for Brawl API.

  • No classes, very simple to use
  • Written in TypeScript, with typings included
  • Uses ofetch for requests
  • Includes every API endpoint
  • ESM and CJS support
  • Unit tested

Installation

yarn add @brawltracker/brawl-api
# or
pnpm add @brawltracker/brawl-api
# or
npm install @brawltracker/brawl-api

Usage

import { brawlApi } from "@brawltracker/brawl-api";

const shelly = await brawlApi.brawlers.getBrawler(16000000);

or

import { brawlers } from "@brawltracker/brawl-api";

const shelly = await brawlers.getBrawler(16000000);

Documentation

You can find the documentation here. Everything is exported from the brawlApi object, or you can import the specific endpoint you want to use

1.2.2

3 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.1

5 months ago

1.1.0

6 months ago

1.0.0

6 months ago