thesportsdb

0.0.2 • Public • Published

theSportsDB

Library for The Sports DB API
For questions, email me at gpsanant@gmail.com

Installation

npm install thesportsdb

Example Usage

const theSportsDB = require('thesportsdb');
(async() => {
    theSportsDB.setApiKey(808) //defaults to 1, set for Patreon
    //works with space, underscores, or "%20"s
    var goat = await theSportsDB.getPlayerByName("michael jordan")
    var kobe = await theSportsDB.getPlayerByName("kobe_bryant") 
    //replace unused parameters with null
    var events = await theSportsDB.getEventsOnDay("2014-10-10", null, "Australian_A-League")
    //ids can be either numbers or strings
    var nextEvents = await theSportsDB.getNext5EventsByTeamId(133602)
})()

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    4
  • 0.0.1
    0

Package Sidebar

Install

npm i thesportsdb

Weekly Downloads

4

Version

0.0.2

License

ISC

Unpacked Size

10.5 kB

Total Files

3

Last publish

Collaborators

  • gpsanant