@brawltracker/brawl-api
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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

/@brawltracker/brawl-api/

    Package Sidebar

    Install

    npm i @brawltracker/brawl-api

    Weekly Downloads

    15

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    16.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • death_blows