evo

evolutions

A cli to get pokemon evolution chain.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

9

Maintenance

Last Commit

3yrs ago

Contributors

0

Package

Dependencies

4

Size (min+gzip)

518.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

evolutions

A cli tool to get Pokémon evolution chain.

NOTE - Only supports Pokémons upto 6th generation as of now.

Install

To test, install globally:

$ npm install -g evolutions

$ evolutions
torchic combusken blaziken

$ evolutions 1 4
bulbasaur ivysaur venusaur
charmander charmeleon charizard

$ evolutions eevee mudkip
vaporeon jolteon flareon espeon umbreon leafeon glaceon sylveon
mudkip marshtomp swampert

To use in another module:

$ npm install --save evolutions

Usage

const evolutions = require('evolutions');

evolutions.random();
//=> 'Snorlax'

evolutions.getName(147);
//=> 'Dratini'

evolutions.getId('Dratini');
//=> 147

evolutions.exists('Moltres');
//=> true

evolution.getEvolutionChain('chimchar');
//=> 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.

evolutions-webapp - Webapp to view Pokémon evolution chain.

Author

Anshuman Verma

Contribute

Found a bug, please create an issue

Icons made by Roundicons Freebies from www.flaticon.com is licensed by CC 3.0 BY

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100