1.0.1 • Published 6 years ago
awesomenauts-api-lib v1.0.1
awesomenauts-api-lib
A fast and lightweight library written with ES6 async / await for connecting with the Community Awesomenauts API.
- Installation
- Get All Nauts
- Get All Maps
- Get Naut by Key
- Get Map by Key
- Get Naut Role
- Get Naut Description
- Get Naut Difficulty
- Get Naut Image
- Get Naut Proper Name
- Get Naut Abilities
- Get Naut First Ability
- Get Naut Second Ability
- Get Naut Jump Ability
- Get Naut Attack
- Get Map Splash Art
- Get Mini Map
- Get Map Description
- Get Map Creep
- Get Map Hazard
- Get Map Hazard Text
Installation
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install awesomenauts-api-lib
Usage
import * as NautsAPI from 'awesomenauts-api-lib';
Usage Get All Nauts
const nauts = await NautsAPI.AllNauts()
Usage Get All Maps
const nauts = await NautsAPI.AllMaps()
Usage Get Naut by Key
const FroggyG = await NautsAPI.NautByKey('froggyg')
Usage Get Map by Key
const RibbitIV = await NautsAPI.MapByKey('ribbit')
Usage Get Naut Role
const RocketsRole = await NautsAPI.NautRole('rocket')
Usage Get Naut Description
const LeonsDesc = await NautsAPI.NautDescription('leon')
Usage Get Naut Difficulty
const RocketDiff = await NautsAPI.NautDifficulty('rocket')
Usage Get Naut Image
const MaxImage = await NautsAPI.NautImage('max')
Usage Get Naut Proper Name
const LonestarName = await NautsAPI.NautProperName('lonestar')
Usage Get Naut Abilities
const DizzyAbilities = await NautsAPI.NautAbilities('dizzy')
Usage Get Naut First Ability
const NautAbility1 = await NautsAPI.NautAbilitiesOne('rocket')
Usage Get Naut Second Ability
const NautAbility2 = await NautsAPI.NautAbilitiesTwo('rocket')
Usage Get Naut Jump Ability
const NautJumpAbility = await NautsAPI.NautAbilitiesJump('rocket')
Usage Get Naut Attack
const NautAttack = await NautsAPI.NautAbilitiesAttack('rocket')
Usage Get Map Splash Art
const RibbitSplashArt = await NautsAPI.MapSplashArt('ribbit')
Usage Get Mini Map
const RibbitMiniMap = await NautsAPI.MapMini('ribbit')
Usage Get Map Description
const RibbitDesc = await NautsAPI.MapDescription('ribbit')
Usage Get Map Creep
const AI404Creep = await NautsAPI.MapCreep('ai_404')
Usage Get Map Hazard
const SoronaHazardImage = await NautsAPI.MapCreep('sorona')
Usage Get Map Hazard Text
const SoronaHazardText = await NautsAPI.MapCreep('sorona')