evolutions
A cli tool to get pokemon evolution chain.
NOTE - Only supports pokemons upto 6th generation as of now.
Install
To test, install globally:
$ npm install -g evolutions $ evolutionstorchic combusken blaziken $ evolutions 1 4bulbasaur ivysaur venusaurcharmander charmeleon charizard $ evolutions eevee mudkipvaporeon jolteon flareon espeon umbreon leafeon glaceon sylveonmudkip marshtomp swampert
To use in another module:
$ npm install --save evolutions
Usage
const evolutions = ; evolutions;//=> 'Snorlax' evolutions;//=> 'Dratini' evolutions;//=> 147 evolutions;//=> true evolution;//=> chimchar monferno infernape
API
.random(): string
Returns a random pokemon name.
.getName(id: number): string
Get pokemon name form ID.
.getId(name: string): number
Get pokemon ID form name.
.exists(name: string) boolean
Check if the pokemon with a given name exists (not case sensitive).
.getEvolutionChain(name: string): array
Get an array containing the evolution chain of a pokemon.
License
MIT © Anshuman Verma