A wrapper to work with the StatsNite Bloons TD 6 API
$ npm install bloons-js --save
import Bloonsjs from 'bloons-js';
const Bloonsjs = require('bloons-js');
import Bloonsjs from 'bloons-js';
async function getTowersId() {
console.log(await BloonsJS.getAllTowers(true));
}
getTowersId();
const Bloonsjs = require('bloons-js');
async function getTowersId() {
console.log(await BloonsJS.getAllTowers(true));
}
getTowersId();
Returns information from all towers
- onlyId: boolean optional - displays only the id of the towers
Returns information from a specific tower
- id: string - tower id
Returns information from all heroes
- onlyId: boolean optional - displays only the id of the heroes
Returns information from a specific hero
- id: string - hero id
Returns information from all bloons
- onlyId: boolean optional - displays only the id of the bloons
Returns information from a specific bloon
- id: string - bloon id
Returns tower image
- towerId: string - tower id
- level: string - tower level, for the default sprite use 'base', for path evolutions use '001', '002', '020', etc. for paragons forms use 'paragon'
Returns hero image
- heroId: string - hero id
- level: string - hero level, use numbers from 1 to 20, but only those where there are changes in the sprite
- skinId: string - hero skin id
Returns bloon image
- bloonId: string - bloon id
- type: string - bloon type (camo, regrow, camoregrow, fort, fortcamo, fortcamoregrow, fortregrow)