@diablosnaps/common
v1.1.1
Published
Provides utility functions and shared types.
Downloads
502
Readme
@diablosnaps/common
Provides utility functions and shared types.
Usage
import { Game } from '@diablosnaps/common';
Game.getItemName(...) // => '100,000 Steps'
Game.getItemTypeLine(...) // => 'Ancestral Rare Bow'
Game.getItemVariantText(...) // => 'Ancestral'
Game.getItemQualityText(...) // => 'Rare'
Game.getItemTypeText(...) // => 'Bow'
Game.getItemAffixName(...) // => 'Smiting'
Game.getItemAffixDescription(...) // => '+13 Maximum Mana'
Installation
npm install @diablosnaps/common
# or yarn
yarn add @diablosnaps/common