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

@goodgamestudios/game-alias

Package Overview
Dependencies
Maintainers
20
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goodgamestudios/game-alias

Get and convert between game id’s and their various aliases

  • 0.2.11
  • latest
  • npm
  • Socket score

Version published
Maintainers
20
Created
Source

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')   // ← 15
id('ranch')     // ← 15
id(15)          // ← 15

name(15)        // ← 'bigfarm'
name('bigfarm') // ← 'bigfarm'
name('ranch')   // ← 'bigfarm'

codename(15)        // ← 'ranch'
codename('ranch')   // ← 'ranch'
codename('bigfarm') // ← 'ranch'

acronym(15) // ← 'bf'
acronym('ranch') // ← 'bf'
acronym('bigfarm') // ← 'bf'

FAQs

Package last updated on 03 Feb 2020

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