pokemon-plus

1.2.0 • Public • Published

Pokemon Plus

Get Pokémon names, including Alolan, Galarian, Hisuian and Paldean variants, and the various forms of Silvally and Arceus.

Install

npm install pokemon-plus

Usage

const pokemonPlus = require('pokemon-plus');

pokemonPlus.all();
// ['Bulbasaur', …]

pokemonPlus.random();
// 'Ninetales'

API

.all(sublist?)

Get all Pokémon names as a string[]

sublist

Type: string
Default: all
Options: alola, galar, hisui, paldea, silvally, arceus

pokemonPlus.all();
// ['Bulbasaur', …]
pokemonPlus.all('alola');
// ['Diglett-alola', …]

.random(sublist?)

Get random Pokémon name

sublist

Type: string
Default: all
Options: alola, galar, hisui, paldea, silvally, arceus

pokemonPlus.random();
// 'Lycanroc'
pokemonPlus.random('silvally');
// 'Silvally-ice'

Credit

This module was built as an extension of the 'pokemon' package by Sindre Sorhus.

Package Sidebar

Install

npm i pokemon-plus

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

5.94 kB

Total Files

5

Last publish

Collaborators

  • crownedfoxes