Socket
Socket
Sign inDemoInstall

pokeapi-ts

Package Overview
Dependencies
38
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pokeapi-ts

An API Wrapper for pokeapi written in typescript


Version published
Weekly downloads
4
Maintainers
1
Install size
845 kB
Created
Weekly downloads
 

Readme

Source

Pokeapi-ts

An API Wrapper for pokeapi written in typescript

Version Downloads/week License

Installing

A step by step series of examples that tell you how to get the package

$ npm i pokeapi-ts --save

or

$ yarn add pokeapi-ts

Documentation

Check all the methods available on the docs

Usage

The packages wrap all methods of the V2 API

Here's an example on how to use the package

  const PokeAPI = require('pokeapi-ts').default
  const Pokedex = new PokeAPI()

  Pokedex.getStats(5)
    .then(data => console.log(data))
    .catch(err => console.error(err))

  Pokedex.getStats(5) // This will be auto cached
    .then(data => console.log(data))
    .catch(err => console.error(err))

For a full list of all available methods please check the Documentation section

Built With

  • Typescript - Typed superset of JavaScript
  • Typedoc - Documentation generator for typescript projects
  • Axios - Promise based HTTP client for the browser and node.js
  • Axios-Extensions - Used to cache requests

License

This project is licensed under the MIT License

Keywords

FAQs

Last updated on 27 Aug 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc