1.0.8 • Published 2 years ago

pokename-gopi v1.0.8

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

Npm Module (pokename) By Gurpreet707

Gen 9 included. This is a simple package to get pokemon name, ids, random pokemon.

Installation

To install this package, simply run the following command:

npm install pokename-gopi
yarn add pokemon-gopi
const {
  getRandomPokemon,
  getPokemonNameById,
  getPokemonIdByName,
} = require("pokename-gopi");
const pokename = require("pokename-gopi");

console.log(getRandomPokemon("id"));
// or console.log(pokename.getRandomPokemon("id"));
// it returns with a random pokemon id.

console.log(getRandomPokemon("name"));
// or console.log(pokename.getRandomPokemon("name"));
// returns with a random pokemon name

console.log(getRandomPokemon());
// or console.log(pokename.getRandomPokemon());
// throws error as getRandomPokemon should be a name or id.

console.log(getPokemonNameById("151"));
// or console.log(pokename.getPokemonNameById(151));
// returns with pokemon name.

console.log(getPokemonIdByName("squirtle"));
// or console.log(pokename.getPokemonIdByName("squirtle"));
// returns with pokemon id.
1.0.8

2 years ago

1.0.7

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago