ts-classes-examplary-module
v1.0.1
Published
This is an examplary module with Typescript
Downloads
1
Readme
Examplary module
This is an examplary module with Typescript, that is published to NPM.
Please ignore this, as this module does not provide any real functionality.
This module uses OpenDota API to load all of the available Dota 2 heroes.
Installation
npm i ts-classes-examplary-module
Usage
Create an instance of the module:
const { DotaHeroes } = require('ts-classes-examplary-module');
const Instance = new DotaHeroes();
Then use it to load the available heroes list with the getHeroes
method:
const heroes = await Instance.getHeroes();
console.log(heroes);