TypeScript npm

JavaScript & TypeScript SDK

Zero-dependency SDK na gumagamit ng native fetch. ESM + CJS dual output, kumpletong TypeScript type definitions.

Pag-install npm
$ npm install @tcgpricelookup/sdk

Mga Pangunahing Feature

  • ✓ 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
Halimbawa ng Paggamit
import { TCGLookup } from 'tcglookup';

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

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

Simulan ang pagbuo gamit ang TCG API

Kumuha ng libreng API key at simulan ang pag-query ng mga presyo ng kard sa ilang minuto.