Get Pokémon names
The name list is just a JSON file and can be used wherever.
$ npm install --save pokemon
const pokemon = require('pokemon');
pokemon.random();
//=> 'Snorlax'
pokemon.getName(147);
//=> 'Dratini'
pokemon.getId('Dratini');
//=> 147
Type: Array
All names.
Random name.
Get name from ID.
With the optional lang
parameter you can get a localized name using a language code:
pokemon.getName(100);
//=> 'Voltorb'
pokemon.getName(100, 'de');
//=> 'Voltobal'
Get ID from name.
With the optional lang
parameter you can get the ID for a localized name using a language code:
pokemon.getId('Snorlax');
//=> 143
pokemon.getId('Relaxo', 'de');
//=> 143
Pokémon names are available for the following languages:
de
(German)en
(English)fr
(French)
- pokemon-cli - CLI for this module
- cat-names - Get popular cat names
- dog-names - Get popular dog names
- superb - Get superb like words
- superheroes - Get superhero names
- supervillains - Get supervillain names
- yes-no-words - Get yes/no like words
MIT © Sindre Sorhus