1.0.10 • Published 5 years ago

hearthstone-sql v1.0.10

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

hearthstone-sql

npm

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

Install the package from npm:

npm install hearthstonejson

fetchdata()

Function that takes an api key from http://hearthstoneapi.com/ and fetches current card lists.

importcards()

Promise that returns true when it has added all cards from the fetched json to the sql db.

exports.dbpath

The absolute path to the sqlite file for easy use in other files. Will not reference anything if you have never fetched any data.

exports.jsonpath

The absolute path to the json file for easy use in other files. Will not reference anything if you have never fetched any data.

Example

var hssql = require("hearthstone-sql")

hssql.fetchdata(mashapekey)
.then(() => {
hssql.importcards()
})
1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago