TypeScript npm

JavaScript & TypeScript SDK

Nul-afhængigheds SDK med native fetch. ESM + CJS dual-output med fulde TypeScript-typedefinitioner.

Installation npm
$ npm install @tcgpricelookup/sdk

Vigtigste funktioner

  • ✓ 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
Eksempel på brug
import { TCGLookup } from 'tcglookup';

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

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

Begynd at bygge med TCG API

Få din gratis API-nøgle og begynd at forespørge kortpriser på få minutter.