Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pokeapi-ts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pokeapi-ts

An API Wrapper for pokeapi written in typescript

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 27 Aug 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc