Data fetched from http://hearthstoneapi.com. Data will be stored locally in the same manner as the database is.
Now dynamically builds (playable) card list, and now the package should be evergreen in that it will require no further maintenance from myself.
Install the package from npm:
npm install hearthstonejson
Function that takes an api key from http://hearthstoneapi.com/ and fetches current card lists.
Promise that returns true when it has added all cards from the fetched json to the sql db.
The absolute path to the sqlite file for easy use in other files. Will not reference anything if you have never fetched any data.
The absolute path to the json file for easy use in other files. Will not reference anything if you have never fetched any data.
var hssql = require("hearthstone-sql")
hssql.fetchdata(mashapekey)
.then(() => {
hssql.importcards()
})