Skip to content

dylanlan/pokemon-randomizer

Repository files navigation

Pokemon Randomizer

This is a simple library to generate random teams of pokemon

Options:

  • number: number of random pokemon to generate
  • evolved: choose only fully evolved pokemon
  • type: choose only pokemon of this type
  • randomType: choose only pokemon of a random type
  • superEffective: choose only pokemon super effective against this type
  • unique: choose unique pokemon

Examples:

const { pickRandomPokemon } = require('pokemon-randomizer');

// Chooses 6 random pokemon
const result = await pickRandomPokemon();
result = [
    { name: 'Pikachu' ... },
    { name: 'Mewtwo' ... },
    ...
]

// Chooses 3 random, unique, final stage pokemon, that are super effective against fire
const fullyEvolved = await pickRandomPokemon({
    number: 3,
    unique: true,
    evolved: true,
    superEffective: 'fire'
});
fullyEvolved = [
    { name: 'Blastoise' ... },
    { name: 'Golem' ... },
    { name: 'Omastar' ...},
]

About

Library to pick random teams of pokemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published