skylander.js is a standalone tool made to help developers get info about a skylander and use it in any project with ease. Yes this is very similar to pokedev.js since we made both packages!
Install skylander.js with npm
npm install skylander.js
Install skylander.js with yarn
yarn add skylander.js
const { getSkylanderByName } = require("skylander.js")
const run = async () => {
const skylander = await getSkylanderByName("spyro")
console.log(skylander);
}
run();
{
name: 'Spyro',
image: 'https://cdn.discordapp.com/attachments/846807473352343552/846815877839585320/Spyro.jpg',
gender: 'Male',
species: 'Purple Dragon',
release: "Skylanders: Spyro's Adventure",
role: 'Skylander',
element: 'https://cdn.discordapp.com/attachments/846807473352343552/846815741483286628/Magic.png',
quote: 'All Fired Up!'
}
getSkylanderByID(id)
: Fetching a Skylander by an id.getSkylanderByName(name)
: Fetching a Skylander by his name.getSkylanderRandom()
: Fetching a random Skylander.