🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

@blizzard-api/core

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blizzard-api/core

The core helpers used by all @blizzard-api/* packages.

2.1.0
latest
Source
npm
Version published
Weekly downloads
37
54.17%
Maintainers
1
Weekly downloads
 
Created
Source

@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"

Keywords

blizzard

FAQs

Package last updated on 14 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts