1.0.4 • Published 2 years ago

skylander.js v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

skylander.js

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!

Logo

Discord

npm

size

downloads

Quick Links

Installation

Install skylander.js with npm

  npm install skylander.js

Install skylander.js with yarn

  yarn add skylander.js

Code Example

const { getSkylanderByName } = require("skylander.js") 


const run = async () => {
    const skylander = await getSkylanderByName("spyro")
    console.log(skylander);
}

run();

Console output

{
  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!'
}

Methods

  • getSkylanderByID(id): Fetching a Skylander by an id.
  • getSkylanderByName(name): Fetching a Skylander by his name.
  • getSkylanderRandom(): Fetching a random Skylander.

Contributors

image