Salta ai contenuti

The JavaScript SDK

Questi contenuti non sono ancora disponibili nella tua lingua.

NPM VersionGithub starsNPM Downloadsnpm versionthe TCGdex JAvascript SDK is released under the MIT license.


Terminal window
npm i @tcgdex/sdk


// Import the SDK in moduleJS
import TCGdex from '@tcgdex/sdk'
// OR import the SDK in commonJS
const TCGdex = require('@tcgdex/sdk').default
// Instantiate the SDK
const tcgdex = new TCGdex('en');
// go into an async context
(async () => {
// Card will be Furret from the Darkness Ablaze Set
const card = await tcgdex.fetch('cards', 'swsh3-136');

You can check in the JSON REST API docs and select the correct tab to see the command specific for your SDK

Source Code

The source code for the SDK is available on Github !