CardSymbolApiJs

class CardSymbolApiJs(config: ScryfallConfig = ScryfallConfig())

JavaScript-friendly wrapper for CardSymbolApi (Symbology).

Usage:

const api = new CardSymbolApiJs();
const symbols = await api.all();
const parsed = await api.parseMana('{2}{G}{U}');

Constructors

Link copied to clipboard
constructor(config: ScryfallConfig = ScryfallConfig())

Functions

Link copied to clipboard

Returns a list of all card symbols.

Link copied to clipboard

Parses a mana cost string into tokens and computes values.