0.3.0 • Published 1 year ago

@andymuniz/pokemon-tcg-sdk-typescript v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Pokemon TCG SDK

npm npm bundle size

This is an unofficial TypeScript SDK for the Pokemon TCG API.

Installation

npm

npm install @andymuniz/pokemon-tcg-sdk-typescript

Usage

import { PokemonTcgApiClient } from "@andymuniz/pokemon-tcg-sdk-typescript";

// Create a client
const client = new PokemonTcgApiClient();

// Set API key (optional but recommended)
client.setApiKey("your-api-key");

// Search for cards
client.card
  .search({ q: "name:charizard", orderBy: ["name"] })
  .then(console.log);

// Find a card by ID
client.card.find("xy1-1").then(console.log);

// Get a list of cards.
// Order by name then number descending.
// Return only the "name" and "number" fields.
client.card
  .search({
    orderBy: ["name", "-number"],
    select: ["name", "number"],
  })
  .then(console.log);
0.3.0

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago