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

0.0.9 • Public • Published

@blizzard-api/core

This package provides core functionality to the other @blizzard-api/* packages.

Installation

npm i @blizzard-api/core

Usage

The package includes a series of types that define values that are allowed to be passed to Battle.net API.

import type { BlizzardNamespaces, Locales, Origins } from '@blizzard-api/core';

It also includes a helper function to get the origin, hostname and locale easily accessible based off a single origin.

import type { getBlizzardApi } from '@blizzard-api/core';

const { origin, hostname, locale } = getBlizzardApi('eu'); // "kr" | "tw" | "us"

Package Sidebar

Install

npm i @blizzard-api/core

Weekly Downloads

8

Version

0.0.9

License

MIT

Unpacked Size

13.9 kB

Total Files

8

Last publish

Collaborators

  • laustsf