pokemon
Get Pokémon names
The name list is just a JSON file and can be used wherever.
Install
npm install pokemon
Usage
const pokemon = require('pokemon');
pokemon.all();
pokemon.random();
pokemon.getName(147);
pokemon.getId('Dratini');
API
.all(language?)
Get all Pokémon names as a string[]
.
language
Type: string
Default: 'en'
Language code to retrieve the list of Pokémon for.
pokemon.all();
pokemon.all('de');
.random(language?)
Get random Pokémon name.
language
Type: string
Default: 'en'
Language code to retrieve the Pokémon for.
pokemon.random();
pokemon.random('de');
.getName(id, language?)
Get Pokémon name from ID.
id
Type: number
The ID of a Pokémon, retrieved via getId()
.
language
Type: string
Default: 'en'
Language code to retrieve the Pokémon for.
pokemon.getName(100);
pokemon.getName(100, 'de');
.getId(name, language?)
Get Pokémon ID from name.
name
Type: string
The Pokémon name in the language
locale.
language
Type: string
Default: 'en'
Language code of the localized name.
pokemon.getId('Snorlax');
pokemon.getId('Relaxo', 'de');
.languages: Set
pokemon.languages.has('ja');
Supported languages
Pokémon names are available for the following languages:
de
(German)en
(English)fr
(French)es
(Spanish)ja
(Japanese)ko
(Korean)ru
(Russian)th
(Thai)zh-Hans
(Simplified Chinese)zh-Hant
(Traditional Chinese)
The language codes follow the IETF BCP 47 standard.
Related
Known Issues
ru
(Russian)
- Does not include Pokemon 1009-1025 (Future Paradox Pokemon, and Pokemon released in Gen 9 Expansions - The Teal Mask, and The Indigo Disk). Cannot find credible source for translation.