Skip to content

tristanlievens/unown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unown

Unown

Node library to easily find information about pokemon data, based on data provided by PokeApi.

npm version npm downloads

Installation

To install, simply run

npm install --save unown

Usage

Most of the usage is enforced by the typescript declaration. Currently there are 3 main methods implemented:

import * as unown from 'unown'

unown.findPokemon(1) // { id: 1, identifier: 'bulbasaur', ... }
unown.findMove(1)    // { id: 1, identifier: 'pound', type: { identifier: 'normal', ... } ... }

const bulba = unown.findPokemon(1)
const ember = unown.findMove(52)
unown.typeEfficacy(ember.type, bulba.types[0]) // fire, grass => 200

About

Wrapping the PokeApi data in an npm module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •