Coder Social home page Coder Social logo

pokedex's Introduction

pokedex NPM version Build Status Dependency Status codecov

JavaScript encyclopedia of Pokemon with sprites.

Jigglypuff Gengar Electrode Eevee Snorlax

Note: Generation VII species may have missing data including sprites.

Installation

$ npm install --save pokedex

Usage

var Pokedex = require('pokedex'),
    pokedex = new Pokedex();

console.log( pokedex.pokemon('garbodor') );
console.log( pokedex.pokemon(90) );
{
  id: 569,
  species_id: 569,
  height: 19,
  weight: 1073,
  base_experience: 166,
  order: 617,
  is_default: 1,
  name: 'garbodor',
  sprites: {
    normal: 'http://img.pokemondb.net/sprites/black-white/normal/garbodor.png',
    animated: 'http://img.pokemondb.net/sprites/black-white/anim/normal/garbodor.gif'
  }
}
{
  id: 90,
  species_id: 90,
  height: 3,
  weight: 40,
  base_experience: 61,
  order: 103,
  is_default: 1,
  name: 'shellder',
  sprites: {
    normal: 'http://img.pokemondb.net/sprites/black-white/normal/shellder.png',
    animated: 'http://img.pokemondb.net/sprites/black-white/anim/normal/shellder.gif'
  }
}

Contributing

Run npm run parse to convert the CSVs in /data into the JSON file consumed by this library.

License

MIT © Chris Contolini

Pokemon data from Pokeapi BSD © Paul Hallett

pokedex's People

Contributors

contolini avatar tcov189 avatar tommasoamici avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.