Game Aliases
Get and convert between game id’s and their various aliases
Motivation
Different aliases are used for games throughout code and documentation:
- id’s, e.g. 12, 15, etc
- names, e.g. bigfarm, empire, empiremillenniumwars, etc
- codenames, e.g. ranch, castle, etc.
- acronyms, e.g. em, bf, etc
This module provides functions that convert between ids and aliases, and vice versa.
Installation
npm add @goodgamestudios/game-alias
Usage
const {id, name, codename, acronym} = require('@goodgamestudios/game-alias')
id('bigfarm')
id('ranch')
id(15)
name(15)
name('bigfarm')
name('ranch')
codename(15)
codename('ranch')
codename('bigfarm')
acronym(15)
acronym('ranch')
acronym('bigfarm')