pokemon-data
v0.1.4
Published
A library that contains the name of all pokemons. A great way to name your fixtures, make a pokedex, or just catch' em all.
Downloads
2
Maintainers
Readme
pokemon-data
An npm micro library used to host the name of all pokemons. A great way to name your fixtures, make a pokedex, or just catch' em all.
How to use
First install the package.
npm install pokemon-data
In your project (js file), use all, getRandom or getById.
var pokemonData = require('pokemon-data');
pokemonData.all // To get the whole list
pokemonData.getRandom() // To get a random pokemon
pokemonData.random() // This will be deprecated, but it still works to get a random pokemon
pokemonData.getById(1) // To get bulbasaur.
Currently the package only supplies the name of the pokemon. Feel free to open an issue on the github if you want any other functionalities.
Resources used:
http://www.dragonflycave.com/list.aspx