This package is auto-geneated from the Scryfall API definition.
- Create a folder for your project
mkdir MyPackage
cd MyPackage
git init- Add this repository as a submodule.
git submodule add https://github.com/jdharmon/scryfallapi-nodejs.git scryfall- Initialize package, and install dependencies
npm init
npm install ms-rest- Edit index.js
const scryfallClient = require('./scryfall/scryfallClient');
const scryfall = new scryfallClient();
scryfall.cards.getRandom((error, card) => {
    if (card != null) {
        console.log(`Got card: ${card.name}`);
        console.log(card);
    }
});- Run your app
node index.js