Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blizzard-api/core

Package Overview
Dependencies
Maintainers
0
Versions
20
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.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
95
increased by1483.33%
Maintainers
0
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

FAQs

Package last updated on 26 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc