Skip to content

mtgatracker/node-mtga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-mtga

Magic: the Gathering Arena card information in a nice-to-use format for node

Find a card's name based on its ID:

const { allCards } = require("mtga")
let card = allCards.findCard(67134)  // dub
console.log(card.get("prettyName"))

deploying

because I always forget

# update version in package.json
npm publish