node-artifact-api
Version:
A node module wrapper for the Valve official Artifact API
13 lines (12 loc) • 417 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("./index");
const deck = index_1.decodeDeck('ADCJWkHJLkCChGDU3hdoN4BmwE0AVMCQQQBQ2cBlBhJlIImAUSoAQ9SQiBXb21w');
console.log(deck);
console.log(deck.cards.length);
deck.heroes.forEach((hero) => {
index_1.getCard(hero.id.toString())
.then((res) => {
console.log(res.card_name.english);
});
});