/pokemon-berries-random

A module to express berries random

Primary LanguageJavaScript

Pokemon-Berries-Random

NPM version NPM downloads Build status

npm installnfo

About

This Module Contains all berries and pokemons names and return a Pokemon (or berrie) random name from the list.


Getting Started

To install, simply run the following command in your terminal (from your project directory):

npm install pokemon-berries-random



Example Code For calling the pokemon and berries random names.

const Pokemon = require("pokemon-berries-random");

// Logs a random mythical pokemon
console.log("Mythical Pokemon: " + Pokemon.randomMythical());

// Logs a random legendary pokemon
console.log("Legendary Pokemon: " + Pokemon.randomLengendary());

// Logs a random pokemon from gen 1 to 8
console.log("Full Random Pokemon: " + Pokemon.randomPokemon());

// Logs a random berrie
console.log("Random Berries: " + Pokemon.randomBerry().toUpperCase());