TypeScript npm

JavaScript & TypeScript SDK

Nulla függőségű SDK natív fetch használatával. ESM + CJS dupla kimenet, teljes TypeScript típusdefiníciókkal.

Telepítés npm
$ npm install @tcgpricelookup/sdk

Főbb funkciók

  • Zero dependencies
  • ESM and CommonJS support
  • Full TypeScript types
  • Works in Node.js 18+, browsers, Bun, Deno, Cloudflare Workers
  • Batch card lookups
  • Price history queries
Használati példa
import { TCGLookup } from 'tcglookup';

const tcg = new TCGLookup({ apiKey: 'your-api-key' });

const results = await tcg.search('charizard');
console.log(results);

Kezdje el a fejlesztést a TCG API-val

Szerezze meg ingyenes API-kulcsát, és percek alatt kezdje el lekérdezni a kártyaárakat.