0.1.7 • Published 4 years ago

pokemon-randomizer v0.1.7

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

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' ...},
]
0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

5 years ago

0.1.4

6 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago