mtgapikapa

1.2.3 • Public • Published

Please, if you're wanting something that works, go to https://www.npmjs.com/package/mtgsdk.
It's a much more robust module made by someone much better than me. This one doesn't even work. Kek.

Hello, I'm Tylah Kapa!

You can find me on Twitter @JadeKapa or on my website, tylahkapa.squarespace.com

This is a small Magic the Gathering API I created. Unfortunately this is just a test project, and most definitely does not hold all cards in the game.

Cards are objects held within a JSON file, and hold the information:
Artist, Description, FlavourText, ImgURL, ManaCost, Name, Rarity and Type.


It's relatively simple, but it is a learning procedure after all!

Right now, you are able to execute the functions:

CardCount(), which will return the number of cards in the database.

RandomCard(), which will return a random card from the database.

FindCard(cardName), which will search the database for the name of the card you've specified.

Readme

Keywords

none

Package Sidebar

Install

npm i mtgapikapa

Weekly Downloads

0

Version

1.2.3

License

MIT

Last publish

Collaborators

  • tjkapa