mtgjsonx

3.3.15 • Public • Published

mtgjsonx

Fetches AllSets-x.json from http://mtgjson.com and caches it so you are always sure to have the newest version.

Includes AllSets-x.json to make loading time faster. This module follows the versioning of mtgjson.com.

In addition to the AllSets.json file, the extras includes:

  • Card rulings
  • Foreign names
  • Printings
  • Original text
  • Original type
  • Legalities
  • Source (promos, box sets and theme decks)

Notes

Installation

npm install mtgjsonx

Usage

var mtgjsonx = require('mtgjsonx');
 
mtgjsonx(function(err, data) {
    if (err) return console.log(err);
 
    console.log(data.LEA.cards); // Prints out all cards from the Limited Edition Alpha (LEA) set
});

License

MIT

Package Sidebar

Install

npm i mtgjsonx

Weekly Downloads

0

Version

3.3.15

License

MIT

Last publish

Collaborators

  • jesseflorig