Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Chari69/pokemon-berries-random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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());