mtg

mtgjson

Download AllSets.json from mtgjson.com and use it to find Magic: The Gathering cards. Makes sure that the JSON data is always the newest.

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

mtgjson

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

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

Note - the JSON data is collected by @Sembiance, https://github.com/Sembiance/mtgjson.

Installation

npm install mtgjson

Usage

var mtgjson = require('mtgjson');

mtgjson(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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial