awesomenauts-api-lib

1.0.1 • Public • Published

awesomenauts-api-lib

A fast and lightweight library written with ES6 async / await for connecting with the Community Awesomenauts API.

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')

Readme

Keywords

Package Sidebar

Install

npm i awesomenauts-api-lib

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

13.4 kB

Total Files

4

Last publish

Collaborators

  • boccinfusot