JSPM

dota-wiki-api

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q52389F
  • License MIT

A module to communicate with Liquipedia's Dota 2 Wiki to fetch Team Info, DPC Rankings, Dota Game Schedules, and more!

Package Exports

  • dota-wiki-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dota-wiki-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Dota Wiki Api

A module to communicate with the Liquipedia Dota 2 Wiki to fetch Team Info, DPC Rankings, Dota Game Schedules, and more!

Setup

Install DotaWikiApi with npm (or preferred package manager)

npm i --save dota-wiki-api

Import or require the file, and initialize it with an configuration object

import { DotaWikiApi } from 'dota-wiki-api';

const myConfig = {
    userAgentValue: 'MyConfig/0.0.1 (https://github.com/myGithub/myDotaApp)',
}

const myDotaWikiApi = new DotaWikiApi(myConfig);

myDotaWikiApi.getAllRanks()
    .then((res) => {
        console.log(res);
    })
    .catch((err) => {
        console.log(err);
    

DotaWikiApi is written in Typescript, and therefore also provides typings support out of the box

Documentation

All documentation and API information can be found in the API Document here

Contribution

If you would like to help or build on this module, please submit a PR! I will be providing more detailed contribution information in the near future.

Credits

Data for this module is gathered and used from the Liquipedia Dota 2 Wiki under their CC-BY-SA 3.0 License